From: Ted Kremenek Date: Tue, 1 Dec 2009 22:13:00 +0000 (+0000) Subject: The minimum element size in BumpVector should be 1, not 0. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1488c7a0989e4543b9acb46fa02a54d12a9d0cc9;p=clang The minimum element size in BumpVector should be 1, not 0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90268 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/Support/BumpVector.h b/include/clang/Analysis/Support/BumpVector.h index b23a80ed48..48851d0f26 100644 --- a/include/clang/Analysis/Support/BumpVector.h +++ b/include/clang/Analysis/Support/BumpVector.h @@ -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)