[cfe-commits] r149945 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Bill Wendling
isanbard at gmail.com
Mon Feb 6 16:54:58 PST 2012
Author: void
Date: Mon Feb 6 18:54:58 2012
New Revision: 149945
URL: http://llvm.org/viewvc/llvm-project?rev=149945&view=rev
Log:
Bump up the initial vector size to avoid having to grow the vector more often.
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=149945&r1=149944&r2=149945&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Mon Feb 6 18:54:58 2012
@@ -40,7 +40,7 @@
bool Packed;
CharUnits NextFieldOffsetInChars;
CharUnits LLVMStructAlignment;
- SmallVector<llvm::Constant *, 16> Elements;
+ SmallVector<llvm::Constant *, 32> Elements;
public:
static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
InitListExpr *ILE);
More information about the cfe-commits
mailing list