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

llvm-svn: 92160
This commit is contained in:
Bill Wendling 2009-12-25 13:50:18 +00:00
parent ec030f2f01
commit 6ce6d268a6
1 changed files with 2 additions and 2 deletions

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) {