summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-07 00:54:58 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-07 00:54:58 +0000
commit7ac747245f1c459c6257fa163999d29fe4dd423a (patch)
treead9c5839885d0bddcd63de4e98946d0691a6a325 /clang/lib/CodeGen/CGExprConstant.cpp
parent614b53de1bad5627047adb0c5f452ef9b8517968 (diff)
downloadbcm5719-llvm-7ac747245f1c459c6257fa163999d29fe4dd423a.tar.gz
bcm5719-llvm-7ac747245f1c459c6257fa163999d29fe4dd423a.zip
Bump up the initial vector size to avoid having to grow the vector more often.
llvm-svn: 149945
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 52ae9ee7c45..ccb4b930e67 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -40,7 +40,7 @@ class ConstStructBuilder {
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);
OpenPOWER on IntegriCloud