From d63ba8f2211a7f1022de6e0876a2dd55f15a0e98 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 1 Dec 2009 22:13:00 +0000 Subject: [PATCH] The minimum element size in BumpVector should be 1, not 0. llvm-svn: 90268 --- clang/include/clang/Analysis/Support/BumpVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Analysis/Support/BumpVector.h b/clang/include/clang/Analysis/Support/BumpVector.h index b23a80ed481a..48851d0f2637 100644 --- a/clang/include/clang/Analysis/Support/BumpVector.h +++ b/clang/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) -- GitLab