After some discussion with djg, teach SmallVector to grow from a zero
authorJohn McCall <rjmccall@apple.com>
Thu, 2 Sep 2010 21:55:03 +0000 (21:55 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 2 Sep 2010 21:55:03 +0000 (21:55 +0000)
commit2a9a2dba4c02e7eea3aeba2be5dc1fc377d5aa5c
treec92f5dd9011c0d82d09f0fa599ba91e59576c6ab
parent55945607667e71dc1d4d32cffa60e3b817f2f3ef
After some discussion with djg, teach SmallVector to grow from a zero
capacity and remove the workaround in SmallVector<T,0>.  There are some
theoretical benefits to a N->2N+1 growth policy anyway.

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