Author: Renato Golin Date: 2021-08-16T15:32:04+01:00 New Revision: a19747ea7395dd470345e4703f13bbb74647b019
URL: https://github.com/llvm/llvm-project/commit/a19747ea7395dd470345e4703f13bbb74647b019 DIFF: https://github.com/llvm/llvm-project/commit/a19747ea7395dd470345e4703f13bbb74647b019.diff LOG: Fix type in DenseMap<SmallBitVector, *> to match V.size() Differential Revision: https://reviews.llvm.org/D108124 Added: Modified: llvm/include/llvm/ADT/SmallBitVector.h Removed: ################################################################################ diff --git a/llvm/include/llvm/ADT/SmallBitVector.h b/llvm/include/llvm/ADT/SmallBitVector.h index f570bac23ad51..c70bc88fb1f24 100644 --- a/llvm/include/llvm/ADT/SmallBitVector.h +++ b/llvm/include/llvm/ADT/SmallBitVector.h @@ -721,7 +721,7 @@ template <> struct DenseMapInfo<SmallBitVector> { } 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) { _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits