diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-11-13 02:56:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-11-13 02:56:38 +0000 |
commit | 310fa65ab9acb96319d0fcb779cdd35350f5d00f (patch) | |
tree | 472efe65f1bb15cef1c7818753ee7ab2975311f6 /lib/VMCore | |
parent | cf6b6131dd0da37903a6e3a5173ea12aa8263713 (diff) | |
download | external_llvm-310fa65ab9acb96319d0fcb779cdd35350f5d00f.zip external_llvm-310fa65ab9acb96319d0fcb779cdd35350f5d00f.tar.gz external_llvm-310fa65ab9acb96319d0fcb779cdd35350f5d00f.tar.bz2 |
Revert r167759. Ben is right this isn't likely to help much.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 5c209e2..53f1149 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -195,7 +195,7 @@ public: } BasicBlockPass *getContainedPass(unsigned N) { - assert(N < PassVectorSize && "Pass number out of range!"); + assert(N < PassVector.size() && "Pass number out of range!"); BasicBlockPass *BP = static_cast<BasicBlockPass *>(PassVector[N]); return BP; } @@ -346,7 +346,7 @@ public: } ModulePass *getContainedPass(unsigned N) { - assert(N < PassVectorSize && "Pass number out of range!"); + assert(N < PassVector.size() && "Pass number out of range!"); return static_cast<ModulePass *>(PassVector[N]); } @@ -963,7 +963,6 @@ void PMDataManager::add(Pass *P, bool ProcessAnalysis) { if (!ProcessAnalysis) { // Add pass PassVector.push_back(P); - ++PassVectorSize; return; } @@ -1025,7 +1024,6 @@ void PMDataManager::add(Pass *P, bool ProcessAnalysis) { // Add pass PassVector.push_back(P); - ++PassVectorSize; } |