[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

@@ -414,7 +414,7 @@ namespace {
using offset_type = unsigned;
hash_value_type ComputeHash(key_type_ref key) {
return llvm::hash_value(static_cast<uint32_t>(key));
return key;
}
std::pair<unsigned, unsigned> EmitKeyDataLength(raw_ostream &out,
@@ -459,7 +459,7 @@ namespace {
using offset_type = unsigned;
hash_value_type ComputeHash(key_type_ref key) {
return llvm::hash_value(static_cast<uint32_t>(key));
return key;
}
std::pair<unsigned, unsigned>