From: Julian Seward Date: Sun, 6 Sep 2015 13:10:22 +0000 (+0000) Subject: Bug 342008 - valgrind.h needs type cast for _zzq_default to compile with clang/llvm... X-Git-Tag: svn/VALGRIND_3_11_0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=515b7fe0b383789a1aeacb5811ed7d7828e53bfa;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/include/valgrind.h b/include/valgrind.h index 4f170bc624..fc39e5305b 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; \ })