From 48371650b60b47161046715eabffe88e458d372b Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Sat, 16 May 2009 21:08:25 +0000 Subject: [PATCH] Remove the volatile marker from the cas_flag typedef, fixing some warnings. It's now the client's resposibility to add it in when needed llvm-svn: 71959 --- llvm/include/llvm/System/Atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/System/Atomic.h b/llvm/include/llvm/System/Atomic.h index b9754621d11e..375a518bb663 100644 --- a/llvm/include/llvm/System/Atomic.h +++ b/llvm/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);