Avoid assigning to Changed when it won't be used after the return.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2009-12-25 13:50:18 +00:00
parent 164558e59c
commit 47eb1eab1f

View File

@ -1133,7 +1133,7 @@ bool BBPassManager::runOnFunction(Function &F) {
removeDeadPasses(BP, I->getName(), ON_BASICBLOCK_MSG);
}
return Changed |= doFinalization(F);
return doFinalization(F) || Changed;
}
// Implement doInitialization and doFinalization
@ -1355,7 +1355,7 @@ bool FPPassManager::runOnModule(Module &M) {
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
runOnFunction(*I);
return Changed |= doFinalization(M);
return doFinalization(M) || Changed;
}
bool FPPassManager::doInitialization(Module &M) {