From d208fd7bdbea0807bdc270b785844cdab56623cc Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 20 May 2009 18:47:53 +0000 Subject: [PATCH] Copy-and-paste-o. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72177 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Atomic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/System/Atomic.cpp b/lib/System/Atomic.cpp index fa8a937c07f..e720385e5f0 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;