diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 18:02:34 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 18:02:34 +0000 |
commit | 7515c71cb6a29141b70f3788651e98d1478c810f (patch) | |
tree | 9c981e623dfbeb106f0e574cb4d573b30bca4fc5 /lib/Support/Timer.cpp | |
parent | 4721e55a0c2e749cba4f91aa584508284ff67d2c (diff) | |
download | llvm-7515c71cb6a29141b70f3788651e98d1478c810f.tar.gz llvm-7515c71cb6a29141b70f3788651e98d1478c810f.tar.bz2 llvm-7515c71cb6a29141b70f3788651e98d1478c810f.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r-- | lib/Support/Timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index 03845f21f2..0456f5d638 100644 --- a/lib/Support/Timer.cpp +++ b/lib/Support/Timer.cpp @@ -81,14 +81,14 @@ raw_ostream *llvm::CreateInfoOutputFile() { static TimerGroup *DefaultTimerGroup = 0; static TimerGroup *getDefaultTimerGroup() { TimerGroup *tmp = DefaultTimerGroup; - std::atomic_thread_fence(std::memory_order_seq_cst); + sys::MemoryFence(); if (tmp) return tmp; llvm_acquire_global_lock(); tmp = DefaultTimerGroup; if (!tmp) { tmp = new TimerGroup("Miscellaneous Ungrouped Timers"); - std::atomic_thread_fence(std::memory_order_seq_cst); + sys::MemoryFence(); DefaultTimerGroup = tmp; } llvm_release_global_lock(); |