diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-12-01 22:13:00 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-12-01 22:13:00 +0000 |
| commit | d63ba8f2211a7f1022de6e0876a2dd55f15a0e98 (patch) | |
| tree | b5fc75a37f27a3da6bae5663b5859f14612430ac | |
| parent | 117e472b52da34f45ed10a19abc1ac2c9482ccc0 (diff) | |
| download | bcm5719-llvm-d63ba8f2211a7f1022de6e0876a2dd55f15a0e98.tar.gz bcm5719-llvm-d63ba8f2211a7f1022de6e0876a2dd55f15a0e98.zip | |
The minimum element size in BumpVector should be 1, not 0.
llvm-svn: 90268
| -rw-r--r-- | clang/include/clang/Analysis/Support/BumpVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/Support/BumpVector.h b/clang/include/clang/Analysis/Support/BumpVector.h index b23a80ed481..48851d0f263 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) |

