Skip to content

Commit db0af39

Browse files
committed
[msan] Fix ppc64 format warning
1 parent 6934ab5 commit db0af39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/msan/msan_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static void CheckMemoryLayoutSanity() {
106106

107107
bool InitShadow(bool init_origins) {
108108
// Let user know mapping parameters first.
109-
VPrintf(1, "__msan_init %p\n", &__msan_init);
109+
VPrintf(1, "__msan_init %p\n", reinterpret_cast<void *>(&__msan_init));
110110
for (unsigned i = 0; i < kMemoryLayoutSize; ++i)
111111
VPrintf(1, "%s: %zx - %zx\n", kMemoryLayout[i].name, kMemoryLayout[i].start,
112112
kMemoryLayout[i].end - 1);
@@ -115,7 +115,7 @@ bool InitShadow(bool init_origins) {
115115

116116
if (!MEM_IS_APP(&__msan_init)) {
117117
Printf("FATAL: Code %p is out of application range. Non-PIE build?\n",
118-
&__msan_init);
118+
reinterpret_cast<void *>(&__msan_init));
119119
return false;
120120
}
121121

0 commit comments

Comments
 (0)