aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2015-09-06 13:10:22 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2015-09-06 13:10:22 +0000
commit470e245039eeb703d2f887fa3ff4a1fef116d23e (patch)
tree349fa58a19e674b8d4420bbc79532e20cdba73eb
parent981ffbd4d8f303856a0183e801b934ed7e3cd957 (diff)
downloadvalgrind-470e245039eeb703d2f887fa3ff4a1fef116d23e.tar.gz
Bug 342008 - valgrind.h needs type cast for _zzq_default to compile with clang/llvm in 64-bit mode.
(arm64, that is) Patch from chh@google.com. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15633 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--include/valgrind.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/valgrind.h b/include/valgrind.h
index 4f170bc62..fc39e5305 100644
--- a/include/valgrind.h
+++ b/include/valgrind.h
@@ -794,7 +794,8 @@ typedef
"orr x10, x10, x10\n\t" \
"mov %0, x3" /*result*/ \
: "=r" (_zzq_result) \
- : "r" (_zzq_default), "r" (&_zzq_args[0]) \
+ : "r" ((unsigned long int)(_zzq_default)), \
+ "r" (&_zzq_args[0]) \
: "cc","memory", "x3", "x4"); \
_zzq_result; \
})