X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FStatistic.cpp;h=56c3b0f5659fa716e7c43cc567b9ac4d5f4bdc7d;hb=9988c292f1b6b38ecf7957ab3d6cd00b0b18c7dd;hp=9d075736b3035fa2ddfe5a4da9b9c33f33cc29d2;hpb=4721e55a0c2e749cba4f91aa584508284ff67d2c;p=oota-llvm.git diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index 9d075736b30..56c3b0f5659 100644 --- a/lib/Support/Statistic.cpp +++ b/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;