[llvm] [CodeGen] Make hash_value a non-friend function (NFC) (PR #137564)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 27 18:11:08 PDT 2025
================
@@ -96,7 +94,7 @@ class Vector {
inline hash_code hash_value(const Vector &V) {
const unsigned *VBegin = reinterpret_cast<const unsigned *>(V.begin());
const unsigned *VEnd = reinterpret_cast<const unsigned *>(V.end());
- return hash_combine(V.Data.size(), hash_combine_range(VBegin, VEnd));
+ return hash_combine(V.getLength(), hash_combine_range(VBegin, VEnd));
----------------
kuhar wrote:
Ah, then leave as-is.
https://github.com/llvm/llvm-project/pull/137564
More information about the llvm-commits
mailing list