[compiler-rt] r330312 - tsan: fix compiler warnings
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 19 00:42:08 PDT 2018
Author: dvyukov
Date: Thu Apr 19 00:42:08 2018
New Revision: 330312
URL: http://llvm.org/viewvc/llvm-project?rev=330312&view=rev
Log:
tsan: fix compiler warnings
vmaSize is uptr, so we need to print it with %zd.
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc?rev=330312&r1=330311&r2=330312&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc Thu Apr 19 00:42:08 2018
@@ -213,20 +213,20 @@ void InitializePlatformEarly() {
#if defined(__aarch64__)
if (vmaSize != 39 && vmaSize != 42 && vmaSize != 48) {
Printf("FATAL: ThreadSanitizer: unsupported VMA range\n");
- Printf("FATAL: Found %d - Supported 39, 42 and 48\n", vmaSize);
+ Printf("FATAL: Found %zd - Supported 39, 42 and 48\n", vmaSize);
Die();
}
#elif defined(__powerpc64__)
# if !SANITIZER_GO
if (vmaSize != 44 && vmaSize != 46 && vmaSize != 47) {
Printf("FATAL: ThreadSanitizer: unsupported VMA range\n");
- Printf("FATAL: Found %d - Supported 44, 46, and 47\n", vmaSize);
+ Printf("FATAL: Found %zd - Supported 44, 46, and 47\n", vmaSize);
Die();
}
# else
if (vmaSize != 46 && vmaSize != 47) {
Printf("FATAL: ThreadSanitizer: unsupported VMA range\n");
- Printf("FATAL: Found %d - Supported 46, and 47\n", vmaSize);
+ Printf("FATAL: Found %zd - Supported 46, and 47\n", vmaSize);
Die();
}
# endif
More information about the llvm-commits
mailing list