mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
DenseMap: assert that we have found a bucket before we try to insert into it.
This silences literally dozens of analyzer warnings on LLVM (since DenseMap is such a commonly-used class). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef5fc952e8
commit
3bbdddf527
@ -423,6 +423,7 @@ private:
|
|||||||
this->grow(NumBuckets);
|
this->grow(NumBuckets);
|
||||||
LookupBucketFor(Key, TheBucket);
|
LookupBucketFor(Key, TheBucket);
|
||||||
}
|
}
|
||||||
|
assert(TheBucket);
|
||||||
|
|
||||||
// Only update the state after we've grown our bucket space appropriately
|
// Only update the state after we've grown our bucket space appropriately
|
||||||
// so that when growing buckets we have self-consistent entry count.
|
// so that when growing buckets we have self-consistent entry count.
|
||||||
|
Loading…
Reference in New Issue
Block a user