[clang] 02b55d2 - [AST] Call hash_combine_range with a range (NFC) (#136525)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 20 19:59:23 PDT 2025


Author: Kazu Hirata
Date: 2025-04-20T19:59:19-07:00
New Revision: 02b55d2b78d318dad331a66ddac81c7318b0b87a

URL: https://github.com/llvm/llvm-project/commit/02b55d2b78d318dad331a66ddac81c7318b0b87a
DIFF: https://github.com/llvm/llvm-project/commit/02b55d2b78d318dad331a66ddac81c7318b0b87a.diff

LOG: [AST] Call hash_combine_range with a range (NFC) (#136525)

Added: 
    

Modified: 
    clang/lib/AST/ItaniumCXXABI.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ItaniumCXXABI.cpp b/clang/lib/AST/ItaniumCXXABI.cpp
index a1b2551419f5e..6ceedd657fe7e 100644
--- a/clang/lib/AST/ItaniumCXXABI.cpp
+++ b/clang/lib/AST/ItaniumCXXABI.cpp
@@ -110,7 +110,7 @@ struct DenseMapInfo<DecompositionDeclName> {
   }
   static unsigned getHashValue(DecompositionDeclName Key) {
     assert(!isEqual(Key, getEmptyKey()) && !isEqual(Key, getTombstoneKey()));
-    return llvm::hash_combine_range(Key.begin(), Key.end());
+    return llvm::hash_combine_range(Key);
   }
   static bool isEqual(DecompositionDeclName LHS, DecompositionDeclName RHS) {
     if (std::optional<bool> Result =


        


More information about the cfe-commits mailing list