mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
Tighten up an internal LSR API that should check for NULL.
No test case, but should fix a scan_build warning. llvm-svn: 177374
This commit is contained in:
parent
ddf6c7982c
commit
0dd5df1889
@ -895,7 +895,7 @@ void Cost::RatePrimaryRegister(const SCEV *Reg,
|
||||
}
|
||||
if (Regs.insert(Reg)) {
|
||||
RateRegister(Reg, Regs, L, SE, DT);
|
||||
if (isLoser())
|
||||
if (LoserRegs && isLoser())
|
||||
LoserRegs->insert(Reg);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user