diff options
author | Owen Anderson <resistor@mac.com> | 2009-05-20 19:06:49 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-05-20 19:06:49 +0000 |
commit | 76ae5dde51253bcb39990247d5d03210f8a6feef (patch) | |
tree | 5597af7e48908d5fb72c1eff88d13c69abd1b8fc /llvm/lib/System/Atomic.cpp | |
parent | 5b9400d6bd03f48f135d2bcce2965e273c44a3a4 (diff) | |
download | bcm5719-llvm-76ae5dde51253bcb39990247d5d03210f8a6feef.tar.gz bcm5719-llvm-76ae5dde51253bcb39990247d5d03210f8a6feef.zip |
Tabs, be gone!
llvm-svn: 72180
Diffstat (limited to 'llvm/lib/System/Atomic.cpp')
-rw-r--r-- | llvm/lib/System/Atomic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Atomic.cpp b/llvm/lib/System/Atomic.cpp index eee90e22917..8c61ff1069f 100644 --- a/llvm/lib/System/Atomic.cpp +++ b/llvm/lib/System/Atomic.cpp @@ -35,8 +35,8 @@ void sys::MemoryFence() { } sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr, - sys::cas_flag new_value, - sys::cas_flag old_value) { + sys::cas_flag new_value, + sys::cas_flag old_value) { #if LLVM_MULTITHREADED==0 sys::cas_flag result = *ptr; if (result == old_value) @@ -45,7 +45,7 @@ sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr, #elif defined(__GNUC__) return __sync_val_compare_and_swap(ptr, old_value, new_value); #elif defined(_MSC_VER) - return InterlockedCompareExchange(ptr, new_value, old_value); + return InterlockedCompareExchange(ptr, new_value, old_value); #else # error No compare-and-swap implementation for your platform! #endif |