diff options
author | Devang Patel <dpatel@apple.com> | 2006-12-07 21:44:12 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-12-07 21:44:12 +0000 |
commit | 502f19e0f8ba47b5916a7e9d445f4ee071cdf132 (patch) | |
tree | b5f076cd97233789abb7b9ea5ac36af6c7fedd5a | |
parent | 877bfbb9ef75e7fe333d93abecaf0579780ccf54 (diff) | |
download | external_llvm-502f19e0f8ba47b5916a7e9d445f4ee071cdf132.zip external_llvm-502f19e0f8ba47b5916a7e9d445f4ee071cdf132.tar.gz external_llvm-502f19e0f8ba47b5916a7e9d445f4ee071cdf132.tar.bz2 |
Fix thinko.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32327 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/PassManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index a8ec28f..f66d3de 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -883,9 +883,9 @@ bool PassManagerImpl_New::addPass(Pass *P) { if (!activeManager || !activeManager->addPass(P)) { activeManager = new ModulePassManager_New(); PassManagers.push_back(activeManager); + return activeManager->addPass(P); } - - return activeManager->addPass(P); + return true; } /// run - Execute all of the passes scheduled for execution. Keep track of |