projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove isPod() from DenseMapInfo, splitting it out to its own
[oota-llvm.git]
/
lib
/
System
/
Atomic.cpp
diff --git
a/lib/System/Atomic.cpp
b/lib/System/Atomic.cpp
index f9b55a186d1829fa0e6498d1e0e70aba46bed995..7ba8b774d5e0a0b3e590806e468f599d3b138100 100644
(file)
--- a/
lib/System/Atomic.cpp
+++ b/
lib/System/Atomic.cpp
@@
-85,7
+85,7
@@
sys::cas_flag sys::AtomicAdd(volatile sys::cas_flag* ptr, sys::cas_flag val) {
#elif defined(__GNUC__)
return __sync_add_and_fetch(ptr, val);
#elif defined(_MSC_VER)
- return Interlocked
Add(ptr, val)
;
+ return Interlocked
ExchangeAdd(ptr, val) + val
;
#else
# error No atomic add implementation for your platform!
#endif