Skip to content

Commit cbebc1a

Browse files
bnbarhamAnthonyLatsis
authored andcommitted
Revert "[Hashing] get_execution_seed: use a non-vague linkage symbol"
This reverts commit c00ada0.
1 parent 9cc6817 commit cbebc1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/include/llvm/ADT/Hashing.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ struct hash_state {
308308
};
309309

310310
/// In LLVM_ENABLE_ABI_BREAKING_CHECKS builds, the seed is non-deterministic
311-
/// per process (address of a function in LLVMSupport) to prevent having users
312-
/// depend on the particular hash values. On platforms without ASLR, this is
313-
/// still likely non-deterministic per build.
311+
/// (address of a variable) to prevent having users depend on the particular
312+
/// hash values. On platforms without ASLR, this is still likely
313+
/// non-deterministic per build.
314314
inline uint64_t get_execution_seed() {
315315
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
316-
return static_cast<uint64_t>(
317-
reinterpret_cast<uintptr_t>(&install_fatal_error_handler));
316+
static const char seed = 0;
317+
return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(&seed));
318318
#else
319319
return 0xff51afd7ed558ccdULL;
320320
#endif

0 commit comments

Comments
 (0)