[clang] [Serialization] Use specialized decl hash function for GlobalDeclID (PR #95730)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 17 19:04:53 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.
----------------
ChuanqiXu9 wrote:

Done

https://github.com/llvm/llvm-project/pull/95730


More information about the cfe-commits mailing list