diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp index 1e71d6512c1f53..242ee159fdef89 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp @@ -560,7 +560,7 @@ PtraceRegistersStatus SuspendedThreadsListLinux::GetRegistersAndSP( &pterrno); if (fail) { VReport(1, "Could not get regset %p from thread %d (errno %d).\n", - regset, tid, pterrno); + (void *)regset, tid, pterrno); buffer->resize(size); return false; }