summaryrefslogtreecommitdiffstats
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
commitd1c84b078a06dc4ea9db7e9cd8253ee2a5f5bb2b (patch)
tree6d7112051dcdea3968f171142ead3fb3c957ec4a
parentf82944db764fdd63330f9a8b60787f9eae122f3c (diff)
downloadbcm5719-llvm-d1c84b078a06dc4ea9db7e9cd8253ee2a5f5bb2b.tar.gz
bcm5719-llvm-d1c84b078a06dc4ea9db7e9cd8253ee2a5f5bb2b.zip
[PGO] testing _WIN64 instead of _WIN32
llvm-svn: 256129
-rw-r--r--compiler-rt/lib/profile/InstrProfilingPort.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h
index 06727091ae2..da4f18fcbb4 100644
--- a/compiler-rt/lib/profile/InstrProfilingPort.h
+++ b/compiler-rt/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) \
OpenPOWER on IntegriCloud