[compiler-rt] db0af39 - [msan] Fix ppc64 format warning
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 14 18:43:33 PDT 2021
Author: Vitaly Buka
Date: 2021-08-14T18:43:24-07:00
New Revision: db0af393f967c550a9fade1472d1513b97002549
URL: https://github.com/llvm/llvm-project/commit/db0af393f967c550a9fade1472d1513b97002549
DIFF: https://github.com/llvm/llvm-project/commit/db0af393f967c550a9fade1472d1513b97002549.diff
LOG: [msan] Fix ppc64 format warning
Added:
Modified:
compiler-rt/lib/msan/msan_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/msan_linux.cpp b/compiler-rt/lib/msan/msan_linux.cpp
index c27e66661d222..bced00ba24282 100644
--- a/compiler-rt/lib/msan/msan_linux.cpp
+++ b/compiler-rt/lib/msan/msan_linux.cpp
@@ -106,7 +106,7 @@ static void CheckMemoryLayoutSanity() {
bool InitShadow(bool init_origins) {
// Let user know mapping parameters first.
- VPrintf(1, "__msan_init %p\n", &__msan_init);
+ VPrintf(1, "__msan_init %p\n", reinterpret_cast<void *>(&__msan_init));
for (unsigned i = 0; i < kMemoryLayoutSize; ++i)
VPrintf(1, "%s: %zx - %zx\n", kMemoryLayout[i].name, kMemoryLayout[i].start,
kMemoryLayout[i].end - 1);
@@ -115,7 +115,7 @@ bool InitShadow(bool init_origins) {
if (!MEM_IS_APP(&__msan_init)) {
Printf("FATAL: Code %p is out of application range. Non-PIE build?\n",
- &__msan_init);
+ reinterpret_cast<void *>(&__msan_init));
return false;
}
More information about the llvm-commits
mailing list