summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-26 02:11:48 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-26 02:11:48 +0000
commitc13b797e234259c06586c0e346796eca1b6f08b1 (patch)
tree261e658903fb3276d1a6d7e328996009fa1711f8 /clang/lib/Sema/SemaExceptionSpec.cpp
parent2a9898f0a23c2a518b5f37324c6305c479399cca (diff)
downloadbcm5719-llvm-c13b797e234259c06586c0e346796eca1b6f08b1.tar.gz
bcm5719-llvm-c13b797e234259c06586c0e346796eca1b6f08b1.zip
SmallVector's growth policies don't like starting from zero capacity.
I think there are good reasons to change this, but in the interests of short-term stability, make SmallVector<...,0> reserve non-zero capacity in its constructors. This means that SmallVector<...,0> uses more memory than SmallVector<...,1> and should really only be used (unless/until this workaround is removed) by clients that care about using SmallVector with an incomplete type. llvm-svn: 112147
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud