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;