Make sure the size is doubled (not 4x).

llvm-svn: 94845
This commit is contained in:
Junjie Gu 2010-01-29 21:34:26 +00:00
parent fd86e790cc
commit 6abe6cb8b5
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ private:
BucketT *OldBuckets = Buckets;
// Double the number of buckets.
while (NumBuckets <= AtLeast)
while (NumBuckets < AtLeast)
NumBuckets <<= 1;
NumTombstones = 0;
Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT)*NumBuckets));