From d12cec8093086ec788cadb55808da5715153b7cf Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 8 Aug 2011 23:01:10 +0000 Subject: Indicate that there are changes if runOfFunction returns saying that there are. Patch by Jingyue! llvm-svn: 137072 --- llvm/lib/VMCore/PassManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp index 5cf2905733a..6146f9e5f21 100644 --- a/llvm/lib/VMCore/PassManager.cpp +++ b/llvm/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; } -- cgit v1.2.3