mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
164558e59c
commit
47eb1eab1f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user