[cfe-commits] r90268 - /cfe/trunk/include/clang/Analysis/Support/BumpVector.h
Ted Kremenek
kremenek at apple.com
Tue Dec 1 14:13:01 PST 2009
Author: kremenek
Date: Tue Dec 1 16:13:00 2009
New Revision: 90268
URL: http://llvm.org/viewvc/llvm-project?rev=90268&view=rev
Log:
The minimum element size in BumpVector should be 1, not 0.
Modified:
cfe/trunk/include/clang/Analysis/Support/BumpVector.h
Modified: cfe/trunk/include/clang/Analysis/Support/BumpVector.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Support/BumpVector.h?rev=90268&r1=90267&r2=90268&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Support/BumpVector.h (original)
+++ cfe/trunk/include/clang/Analysis/Support/BumpVector.h Tue Dec 1 16:13:00 2009
@@ -166,7 +166,7 @@
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)
More information about the cfe-commits
mailing list