summaryrefslogtreecommitdiff
path: root/lib/profile
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-12-20 19:55:15 +0000
committerXinliang David Li <davidxl@google.com>2015-12-20 19:55:15 +0000
commitbcc273f55551aa32f0d91cc1260fd6df858d8b09 (patch)
tree5616a73bc16f964648ec210fb29a47efa8fed767 /lib/profile
parentd4bd3c6308bddabc0b92f476d491599a6d52e4a0 (diff)
[PGO] testing _WIN64 instead of _WIN32
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@256129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile')
-rw-r--r--lib/profile/InstrProfilingPort.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/profile/InstrProfilingPort.h b/lib/profile/InstrProfilingPort.h
index 06727091a..da4f18fcb 100644
--- a/lib/profile/InstrProfilingPort.h
+++ b/lib/profile/InstrProfilingPort.h
@@ -25,14 +25,14 @@
#if COMPILER_RT_HAS_ATOMICS == 1
#ifdef _MSC_VER
#include <windows.h>
-#if defined(_WIN32)
-#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
- (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \
- (LONG)OldV)
-#else
+#if defined(_WIN64)
#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
(InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV, \
(LONGLONG)OldV) == (LONGLONG)OldV)
+#else
+#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
+ (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \
+ (LONG)OldV)
#endif
#else
#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \