SmallVector's growth policies don't like starting from zero capacity.
authorJohn McCall <rjmccall@apple.com>
Thu, 26 Aug 2010 02:11:48 +0000 (02:11 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 26 Aug 2010 02:11:48 +0000 (02:11 +0000)
commit4672f0f61c0cc1a90d575fcbfd7d905396f81cc6
treedb3411cc0ed301ab17d78fc14afa34e2c45194bb
parentf88c23597aa457f983b3ecd0043c6de2520be1ba
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112147 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h