[llvm] RFC: [ADT] Use a storage policy in DenseMap/SmallDenseMap (NFC) (PR #168255)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 16 09:56:09 PST 2025


================
@@ -350,7 +392,8 @@ class DenseMapBase : public DebugEpochBase {
   /// somewhere into the DenseMap's array of buckets (i.e. either to a key or
   /// value in the DenseMap).
   [[nodiscard]] bool isPointerIntoBucketsArray(const void *Ptr) const {
-    return Ptr >= getBuckets() && Ptr < getBucketsEnd();
+    auto Buckets = buckets();
----------------
kuhar wrote:

nit: spell out the type

https://github.com/llvm/llvm-project/pull/168255


More information about the llvm-commits mailing list