[compiler-rt] [sanitizers][Darwin][NFC] Insert missing void* casts for printf %p (PR #161282)

Dan Blackwell via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 03:52:17 PDT 2025


================
@@ -1147,8 +1147,8 @@ static void PrintVmmap() {
         lastsz += vmsize;
       } else {
         if (lastsz)
-          Printf("|| `[%p, %p]` || size=0x%016" PRIx64 " ||\n", last,
-                 last + lastsz, lastsz);
+          Printf("|| `[%p, %p]` || size=0x%016" PRIx64 " ||\n", (void*)last,
+                 (void*)(last + lastsz), (void*)lastsz);
----------------
DanBlackwell wrote:

We don't need a cast on the final arg here right?

https://github.com/llvm/llvm-project/pull/161282


More information about the llvm-commits mailing list