From: Bill Wendling Date: Mon, 8 Aug 2011 23:01:10 +0000 (+0000) Subject: Indicate that there are changes if runOfFunction returns saying that there are. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7df4f963ea29284f6b2748c78ff658dc4ab36351;p=oota-llvm.git Indicate that there are changes if runOfFunction returns saying that there are. Patch by Jingyue! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 5cf2905733a..6146f9e5f21 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -1532,7 +1532,7 @@ bool FPPassManager::runOnModule(Module &M) { 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; }