[Serialization] Do not serialize unstable hashes

https://github.com/llvm/llvm-project/pull/96282 changed
`get_execution_seed` to be non-deterministic. Use stable hashes instead.
This commit is contained in:
Ben Barham
2024-08-13 17:31:41 -07:00
parent f0ce346a69
commit 273d7ee79d
6 changed files with 13 additions and 15 deletions

View File

@@ -330,7 +330,7 @@ public:
}
hash_value_type ComputeHash(internal_key_type key) {
return llvm::hash_value(key);
return key;
}
static bool EqualKey(internal_key_type lhs, internal_key_type rhs) {
@@ -580,7 +580,7 @@ public:
internal_key_type GetInternalKey(external_key_type ID) { return ID; }
hash_value_type ComputeHash(internal_key_type key) {
return llvm::hash_value(key);
return key;
}
static bool EqualKey(internal_key_type lhs, internal_key_type rhs) {