[llvm-commits] [llvm] r137072 - /llvm/trunk/lib/VMCore/PassManager.cpp
Bill Wendling
isanbard at gmail.com
Mon Aug 8 16:01:11 PDT 2011
Author: void
Date: Mon Aug 8 18:01:10 2011
New Revision: 137072
URL: http://llvm.org/viewvc/llvm-project?rev=137072&view=rev
Log:
Indicate that there are changes if runOfFunction returns saying that there are.
Patch by Jingyue!
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=137072&r1=137071&r2=137072&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Mon Aug 8 18:01:10 2011
@@ -1532,7 +1532,7 @@
bool Changed = doInitialization(M);
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
- runOnFunction(*I);
+ Changed |= runOnFunction(*I);
return doFinalization(M) || Changed;
}
More information about the llvm-commits
mailing list