mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user