]> granicus.if.org Git - clang/commitdiff
The minimum element size in BumpVector should be 1, not 0.
authorTed Kremenek <kremenek@apple.com>
Tue, 1 Dec 2009 22:13:00 +0000 (22:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 1 Dec 2009 22:13:00 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90268 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Support/BumpVector.h

index b23a80ed481a25a5cd418377fc1e9371e737025e..48851d0f2637334224b35623f5a9f9c909e2702a 100644 (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)