diff options
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r-- | llvm/lib/Support/Statistic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 56c3b0f5659..9d075736b30 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -76,7 +76,7 @@ void Statistic::RegisterStatistic() { StatInfo->addStatistic(this); TsanHappensBefore(this); - sys::MemoryFence(); + std::atomic_thread_fence(std::memory_order_seq_cst); // Remember we have been registered. TsanIgnoreWritesBegin(); Initialized = true; |