Fix thinko. Update return status appropriately.

llvm-svn: 40546
This commit is contained in:
Devang Patel 2007-07-26 20:21:42 +00:00
parent 0f692f27a3
commit a51e0a3d8d
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ bool CondProp::runOnFunction(Function &F) {
MadeChange = false; MadeChange = false;
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
SimplifyBlock(BB); SimplifyBlock(BB);
EverMadeChange = MadeChange; EverMadeChange = EverMadeChange || MadeChange;
} while (MadeChange); } while (MadeChange);
return EverMadeChange; return EverMadeChange;
} }