aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-05-20 18:47:53 +0000
committerOwen Anderson <resistor@mac.com>2009-05-20 18:47:53 +0000
commit778071fd70511c3cf9ca6df513c13fa94109fdba (patch)
treef2b87147aab73212c899e747cd50ff1aecef3f9f /lib/System
parent44867dcffa136d38180c3a7c7616bde34703292e (diff)
downloadexternal_llvm-778071fd70511c3cf9ca6df513c13fa94109fdba.zip
external_llvm-778071fd70511c3cf9ca6df513c13fa94109fdba.tar.gz
external_llvm-778071fd70511c3cf9ca6df513c13fa94109fdba.tar.bz2
Copy-and-paste-o.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Atomic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Atomic.cpp b/lib/System/Atomic.cpp
index fa8a937..e720385 100644
--- a/lib/System/Atomic.cpp
+++ b/lib/System/Atomic.cpp
@@ -38,7 +38,7 @@ sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr,
sys::cas_flag new_value,
sys::cas_flag old_value) {
#if LLVM_MULTITHREADED==0
- T result = *dest;
+ sys::cas_flag result = *dest;
if (result == c)
*dest = exc;
return result;