summaryrefslogtreecommitdiff
path: root/lib/System
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-05-20 19:06:49 +0000
committerOwen Anderson <resistor@mac.com>2009-05-20 19:06:49 +0000
commit2aa783b2e716e7e3190e670208ec45caac196599 (patch)
tree49cf69b77461987db64100620a1935d08b635443 /lib/System
parent41583b97cec95473f43d90fdcc2fd097aee2c069 (diff)
downloadllvm-2aa783b2e716e7e3190e670208ec45caac196599.tar.gz
llvm-2aa783b2e716e7e3190e670208ec45caac196599.tar.bz2
llvm-2aa783b2e716e7e3190e670208ec45caac196599.tar.xz
Tabs, be gone!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Atomic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/System/Atomic.cpp b/lib/System/Atomic.cpp
index eee90e2291..8c61ff1069 100644
--- a/lib/System/Atomic.cpp
+++ b/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