mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user