Skip to content
  • Alexey Samsonov's avatar
    Fix initialization-order bug in llvm::Support::TimeValue. TimeValue::now() is... · f940f0c4
    Alexey Samsonov authored
    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
    f940f0c4
Loading