mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user