aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-12-01 22:13:00 +0000
committerTed Kremenek <kremenek@apple.com>2009-12-01 22:13:00 +0000
commit1488c7a0989e4543b9acb46fa02a54d12a9d0cc9 (patch)
tree261123c5d98f76cf8303b0822af6f1090f786adf
parent02b1df62ff6fa9526619ee0db78e2af4186e490d (diff)
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
-rw-r--r--include/clang/Analysis/Support/BumpVector.h2
1 files changed, 1 insertions, 1 deletions
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)