[PATCH] D108124: Fix type in DenseMap<SmallBitVector, *> to match V.size()

Renato Golin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 07:13:51 PDT 2021


rengolin updated this revision to Diff 366620.
rengolin retitled this revision from "Fix type in DenseMap<BitVector, *> to match V.size()" to "Fix type in DenseMap<SmallBitVector, *> to match V.size()".

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108124/new/

https://reviews.llvm.org/D108124

Files:
  llvm/include/llvm/ADT/SmallBitVector.h


Index: llvm/include/llvm/ADT/SmallBitVector.h
===================================================================
--- llvm/include/llvm/ADT/SmallBitVector.h
+++ llvm/include/llvm/ADT/SmallBitVector.h
@@ -721,7 +721,7 @@
   }
   static unsigned getHashValue(const SmallBitVector &V) {
     uintptr_t Store;
-    return DenseMapInfo<std::pair<unsigned, ArrayRef<uintptr_t>>>::getHashValue(
+    return DenseMapInfo<std::pair<size_t, ArrayRef<uintptr_t>>>::getHashValue(
         std::make_pair(V.size(), V.getData(Store)));
   }
   static bool isEqual(const SmallBitVector &LHS, const SmallBitVector &RHS) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108124.366620.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210816/c15b19d7/attachment.bin>


More information about the llvm-commits mailing list