[llvm-commits] [compiler-rt] r172129 - /compiler-rt/trunk/lib/ubsan/ubsan_diag.cc
Richard Smith
richard-llvm at metafoo.co.uk
Thu Jan 10 14:39:40 PST 2013
Author: rsmith
Date: Thu Jan 10 16:39:40 2013
New Revision: 172129
URL: http://llvm.org/viewvc/llvm-project?rev=172129&view=rev
Log:
UBSan: use %p not 0x%zx when printing pointers.
Modified:
compiler-rt/trunk/lib/ubsan/ubsan_diag.cc
Modified: compiler-rt/trunk/lib/ubsan/ubsan_diag.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_diag.cc?rev=172129&r1=172128&r2=172129&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_diag.cc (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_diag.cc Thu Jan 10 16:39:40 2013
@@ -83,7 +83,7 @@
Loc.getModuleLocation().getOffset());
break;
case Location::LK_Memory:
- Printf("0x%zx:", Loc.getMemoryLocation());
+ Printf("%p:", Loc.getMemoryLocation());
break;
case Location::LK_Null:
RawWrite("<unknown>:");
@@ -135,7 +135,7 @@
break;
}
case Diag::AK_Pointer:
- Printf("0x%zx", (uptr)A.Pointer);
+ Printf("%p", A.Pointer);
break;
}
}
More information about the llvm-commits
mailing list