From 36134a386657c48bb2e4093f95d2391be85d7774 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 29 Aug 2025 16:01:54 -0700 Subject: [PATCH] [ADT] Remove DenseMapBase::getHashValue (NFC) This patch removes: static unsigned getHashValue(const KeyT &Val) { return KeyInfoT::getHashValue(Val); } This function is redundant given the templated overload: template static unsigned getHashValue(const LookupKeyT &Val) { return KeyInfoT::getHashValue(Val); } Note that the callers doFind and LookupBucketFor are themselves templated on LookupKeyT. --- llvm/include/llvm/ADT/DenseMap.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/include/llvm/ADT/DenseMap.h b/llvm/include/llvm/ADT/DenseMap.h index bcf3e9676a7b5..4bda50f5a5cc0 100644 --- a/llvm/include/llvm/ADT/DenseMap.h +++ b/llvm/include/llvm/ADT/DenseMap.h @@ -440,10 +440,6 @@ class DenseMapBase : public DebugEpochBase { } } - static unsigned getHashValue(const KeyT &Val) { - return KeyInfoT::getHashValue(Val); - } - template static unsigned getHashValue(const LookupKeyT &Val) { return KeyInfoT::getHashValue(Val);