[clang] [AST] Call hash_combine_range with a range (NFC) (PR #136525)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 20 18:43:16 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136525

None

>From 237474372f11d744737d9890308e7f687a1953ed Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 20 Apr 2025 15:11:01 -0700
Subject: [PATCH] [AST] Call hash_combine_range with a range (NFC)

---
 clang/lib/AST/ItaniumCXXABI.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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