diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-02-07 00:54:58 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-02-07 00:54:58 +0000 |
| commit | 7ac747245f1c459c6257fa163999d29fe4dd423a (patch) | |
| tree | ad9c5839885d0bddcd63de4e98946d0691a6a325 /clang/lib/CodeGen/CGExprConstant.cpp | |
| parent | 614b53de1bad5627047adb0c5f452ef9b8517968 (diff) | |
| download | bcm5719-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.cpp | 2 |
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); |

