File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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.
314314inline 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
You can’t perform that action at this time.
0 commit comments