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
9be9d172bf
commit
a1c01ba8c7
|
@ -895,7 +895,7 @@ void Cost::RatePrimaryRegister(const SCEV *Reg,
|
||||||
}
|
}
|
||||||
if (Regs.insert(Reg)) {
|
if (Regs.insert(Reg)) {
|
||||||
RateRegister(Reg, Regs, L, SE, DT);
|
RateRegister(Reg, Regs, L, SE, DT);
|
||||||
if (isLoser())
|
if (LoserRegs && isLoser())
|
||||||
LoserRegs->insert(Reg);
|
LoserRegs->insert(Reg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue