Skip to content
Commit 2cf3c033 authored by Craig Topper's avatar Craig Topper
Browse files

[DenseMap] Don't capture the BucketEnd pointer before an operation that might...

[DenseMap] Don't capture the BucketEnd pointer before an operation that might change the number of buckets.

This code was added in 887efa51 to
fix reverse iteration.

The call to InsertIntoBucket/InsertIntoBucketWithLookup can change
the number of buckets which will invalidate the BucketEnd. So
don't cache it and calculate it when creating the iterator.
parent 6235951e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment