projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b542645
)
Remove the volatile marker from the cas_flag typedef, fixing some warnings.
author
Owen Anderson
<resistor@mac.com>
Sat, 16 May 2009 21:08:25 +0000
(21:08 +0000)
committer
Owen Anderson
<resistor@mac.com>
Sat, 16 May 2009 21:08:25 +0000
(21:08 +0000)
It's now the client's resposibility to add it in when needed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71959
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/System/Atomic.h
patch
|
blob
|
history
diff --git
a/include/llvm/System/Atomic.h
b/include/llvm/System/Atomic.h
index b9754621d11eb7e61a9de61da647923fe9fd1b05..375a518bb66379812c21366533ead327ba3464a4 100644
(file)
--- 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);