Skip to content

Commit 41cce3b

Browse files
[ADT] Remove DenseMapBase::getHashValue (NFC) (#161123)
This patch removes: static unsigned getHashValue(const KeyT &Val) { return KeyInfoT::getHashValue(Val); } This function is redundant given the templated overload: template <typename LookupKeyT> static unsigned getHashValue(const LookupKeyT &Val) { return KeyInfoT::getHashValue(Val); } Note that the callers doFind and LookupBucketFor are themselves templated on LookupKeyT.
1 parent 57f2a2e commit 41cce3b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/include/llvm/ADT/DenseMap.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,6 @@ class DenseMapBase : public DebugEpochBase {
440440
}
441441
}
442442

443-
static unsigned getHashValue(const KeyT &Val) {
444-
return KeyInfoT::getHashValue(Val);
445-
}
446-
447443
template <typename LookupKeyT>
448444
static unsigned getHashValue(const LookupKeyT &Val) {
449445
return KeyInfoT::getHashValue(Val);

0 commit comments

Comments
 (0)