Skip to content
Commit f940f0c4 authored by Alexey Samsonov's avatar Alexey Samsonov
Browse files

Fix initialization-order bug in llvm::Support::TimeValue. TimeValue::now() is...

Fix initialization-order bug in llvm::Support::TimeValue. TimeValue::now() is explicitly called during module initialization of lib/Support/Process.cpp. It reads the field of global object PosixZeroTime, which is not guaranteed to be initialized at this point. Found by AddressSanitizer with -fsanitize=init-order option.

llvm-svn: 175509
parent 9f298da9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment