summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h
index b9754621d1..375a518bb6 100644
--- a/include/llvm/System/Atomic.h
+++ b/include/llvm/System/Atomic.h
@@ -46,7 +46,7 @@ namespace llvm {
__sync_synchronize();
}
- typedef volatile uint32_t cas_flag;
+ typedef uint32_t cas_flag;
inline cas_flag CompareAndSwap(cas_flag* dest, cas_flag exc, cas_flag c) {
return __sync_val_compare_and_swap(dest, exc, c);
}
@@ -56,7 +56,7 @@ namespace llvm {
OSMemoryBarrier();
}
- typedef volatile int32_t cas_flag;
+ typedef int32_t cas_flag;
inline cas_flag CompareAndSwap(cas_flag* dest, cas_flag exc, cas_flag c) {
cas_flag old = *dest;
OSAtomicCompareAndSwap32(c, exc, dest);