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 { } 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 Result =