mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[rebranch] 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:
@@ -318,7 +318,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) {
|
||||
@@ -557,7 +557,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