diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h index d062f995c98..03af143ed5c 100644 --- a/include/llvm/System/Atomic.h +++ b/include/llvm/System/Atomic.h @@ -70,7 +70,7 @@ namespace llvm { typedef volatile long cas_flag; inline cas_flag CompareAndSwap(cas_flag* dest, cas_flag exc, cas_flag c) { - return _InterlockedCompareExchange(dest, exc, c); + return InterlockedCompareExchange(dest, exc, c); } #else #error No memory atomics implementation for your platform!