[llvm-commits] [llvm] r116278 - /llvm/trunk/lib/VMCore/PassManager.cpp
Dan Gohman
gohman at apple.com
Mon Oct 11 17:13:43 PDT 2010
Author: djg
Date: Mon Oct 11 19:13:43 2010
New Revision: 116278
URL: http://llvm.org/viewvc/llvm-project?rev=116278&view=rev
Log:
Shrink a SmallVector with a known maximum size.
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=116278&r1=116277&r2=116278&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Mon Oct 11 19:13:43 2010
@@ -1563,7 +1563,7 @@
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);
}
More information about the llvm-commits
mailing list