mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +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:
		| @@ -1133,7 +1133,7 @@ bool BBPassManager::runOnFunction(Function &F) { | |||||||
|       removeDeadPasses(BP, I->getName(), ON_BASICBLOCK_MSG); |       removeDeadPasses(BP, I->getName(), ON_BASICBLOCK_MSG); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   return Changed |= doFinalization(F); |   return doFinalization(F) || Changed; | ||||||
| } | } | ||||||
|  |  | ||||||
| // Implement doInitialization and doFinalization | // 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) |   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) | ||||||
|     runOnFunction(*I); |     runOnFunction(*I); | ||||||
|  |  | ||||||
|   return Changed |= doFinalization(M); |   return doFinalization(M) || Changed; | ||||||
| } | } | ||||||
|  |  | ||||||
| bool FPPassManager::doInitialization(Module &M) { | bool FPPassManager::doInitialization(Module &M) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user