The minimum element size in BumpVector should be 1, not 0.

llvm-svn: 90268
This commit is contained in:
Ted Kremenek 2009-12-01 22:13:00 +00:00
parent 117e472b52
commit d63ba8f221
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public:
private:
/// grow - double the size of the allocated memory, guaranteeing space for at
/// least one more element or MinSize if specified.
void grow(BumpVectorContext &C, size_type MinSize = 0);
void grow(BumpVectorContext &C, size_type MinSize = 1);
void construct_range(T *S, T *E, const T &Elt) {
for (; S != E; ++S)