llvm-project
c014db47 - [ADT] Remove the const variant of LookupBucketFor in DenseMap (#107608)

Commit
1 year ago
[ADT] Remove the const variant of LookupBucketFor in DenseMap (#107608) DenseMap has const and non-const variants of LookupBucketFor to find a bucket for insertion purposes. Now that queries (e.g. find, contains, and erase) have been migrated to use doFind instead of LookupBucketFor, nobody uses the const variant of LookupBucketFor. This patch removes the const variant. As far as the logistics go, the non-const variant calls the const variant with a couple of const_cast, so this patch repurposes the const variant as the non-const one while removing the original non-const variant.
Parents
Loading