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 9d075736b30..56c3b0f5659 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); - std::atomic_thread_fence(std::memory_order_seq_cst); + sys::MemoryFence(); // Remember we have been registered. TsanIgnoreWritesBegin(); Initialized = true; |