Fix thinko. Update return status appropriately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40546 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-07-26 20:21:42 +00:00
parent a377a24771
commit 70b36d96b3

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