aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-12 00:13:43 +0000
committerDan Gohman <gohman@apple.com>2010-10-12 00:13:43 +0000
commit8de206c10142c91b19eb5dcacfb0da97747dfb01 (patch)
tree4fbd3234163da85f89b3a57826bcb6668761fd51
parent568a63db96ea59b988c916a7777db7e3e39352b1 (diff)
downloadexternal_llvm-8de206c10142c91b19eb5dcacfb0da97747dfb01.zip
external_llvm-8de206c10142c91b19eb5dcacfb0da97747dfb01.tar.gz
external_llvm-8de206c10142c91b19eb5dcacfb0da97747dfb01.tar.bz2
Shrink a SmallVector with a known maximum size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116278 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/PassManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index c1f1d5a..1fc3d15 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -1563,7 +1563,7 @@ void MPPassManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) {
FPP->add(RequiredPass);
// Register P as the last user of RequiredPass.
- SmallVector<Pass *, 12> LU;
+ SmallVector<Pass *, 1> LU;
LU.push_back(RequiredPass);
FPP->setLastUser(LU, P);
}