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:
Andrew Trick 2013-03-19 04:14:57 +00:00
parent ddf6c7982c
commit 0dd5df1889

View File

@ -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);
}
}