[clang] [AST] Call hash_combine_range with a range (NFC) (PR #136525)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 20 18:43:49 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/136525.diff
1 Files Affected:
- (modified) clang/lib/AST/ItaniumCXXABI.cpp (+1-1)
``````````diff
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 =
``````````
</details>
https://github.com/llvm/llvm-project/pull/136525
More information about the cfe-commits
mailing list