mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-01 07:09:02 +00:00
Make sure the size is doubled (not 4x).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
400c70036d
commit
fcb0ee8ffe
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user