summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-03-03 18:02:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-03-03 18:02:34 +0000
commit17388a61b270a21ee711cd51e003c17d2b3bdf29 (patch)
tree8266a71177053c8198869a5316c079498cea679b /llvm/lib/Support/Statistic.cpp
parent0b6eb591a4d6a7ce35d1a06ecf37637920715fce (diff)
downloadbcm5719-llvm-17388a61b270a21ee711cd51e003c17d2b3bdf29.tar.gz
bcm5719-llvm-17388a61b270a21ee711cd51e003c17d2b3bdf29.zip
Revert "[C++11] Replace LLVM atomics with std::atomic."
Breaks the MSVC build. DataStream.cpp(44): error C2552: 'llvm::Statistic::Value' : non-aggregates cannot be initialized with initializer list llvm-svn: 202731
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp2
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;
OpenPOWER on IntegriCloud