[clang] [Serialization] Use specialized decl hash function for GlobalDeclID (PR #95730)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 05:12:34 PDT 2024
================
@@ -230,7 +230,11 @@ template <> struct DenseMapInfo<clang::GlobalDeclID> {
}
static unsigned getHashValue(const GlobalDeclID &Key) {
- return DenseMapInfo<DeclID>::getHashValue(Key.get());
+ // Our default hash algorithm for 64 bits integer may not be very good.
----------------
ilya-biryukov wrote:
NIT: could you add a FIXME to remove this after we update the hash functions?
https://github.com/llvm/llvm-project/pull/95730
More information about the cfe-commits
mailing list