[llvm-commits] [compiler-rt] r158068 - /compiler-rt/trunk/lib/asan/asan_mac.cc

Alexey Samsonov samsonov at google.com
Wed Jun 6 06:44:19 PDT 2012


Author: samsonov
Date: Wed Jun  6 08:44:19 2012
New Revision: 158068

URL: http://llvm.org/viewvc/llvm-project?rev=158068&view=rev
Log:
[ASan] match type of arguments to format string on Mac.

Modified:
    compiler-rt/trunk/lib/asan/asan_mac.cc

Modified: compiler-rt/trunk/lib/asan/asan_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_mac.cc?rev=158068&r1=158067&r2=158068&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mac.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_mac.cc Wed Jun  6 08:44:19 2012
@@ -208,7 +208,8 @@
                     filename_size);
     }
     if (FLAG_v >= 4)
-      Report("LC_SEGMENT: %p--%p %s+%p\n", *start, *end, filename, *offset);
+      Report("LC_SEGMENT: %p--%p %s+%p\n", (void*)*start, (void*)*end,
+             filename, (void*)*offset);
     return true;
   }
   return false;
@@ -340,7 +341,7 @@
     }
     if (FLAG_v) {
       Report("Mapped pages %p--%p for branch islands.\n",
-             kIslandBeg, kIslandEnd);
+             (void*)kIslandBeg, (void*)kIslandEnd);
     }
     // Should not be very performance-critical.
     internal_memset(island_allocator_pos, 0xCC, kIslandEnd - kIslandBeg);





More information about the llvm-commits mailing list