projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[C++11] Replace LLVM atomics with std::atomic.
[oota-llvm.git]
/
lib
/
Support
/
Statistic.cpp
diff --git
a/lib/Support/Statistic.cpp
b/lib/Support/Statistic.cpp
index 56c3b0f5659fa716e7c43cc567b9ac4d5f4bdc7d..9d075736b3035fa2ddfe5a4da9b9c33f33cc29d2 100644
(file)
--- a/
lib/Support/Statistic.cpp
+++ b/
lib/Support/Statistic.cpp
@@
-76,7
+76,7
@@
void Statistic::RegisterStatistic() {
StatInfo->addStatistic(this);
TsanHappensBefore(this);
- s
ys::MemoryFence(
);
+ s
td::atomic_thread_fence(std::memory_order_seq_cst
);
// Remember we have been registered.
TsanIgnoreWritesBegin();
Initialized = true;