Fix a bug in the previous checkin that broke 255.vortex

llvm-svn: 16355
This commit is contained in:
Chris Lattner 2004-09-15 02:34:40 +00:00
parent 0507ffebb1
commit f11216d24f
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ void LICM::PromoteValuesInLoop() {
LoadValue = LI;
break;
} else if (StoreInst *SI = dyn_cast<StoreInst>(*UI)) {
if (SI->getOperand(1) == LI) {
if (SI->getOperand(1) == Ptr) {
LoadValue = SI->getOperand(0);
break;
}