UBSan: use %p not 0x%zx when printing pointers.

llvm-svn: 172129
This commit is contained in:
Richard Smith 2013-01-10 22:39:40 +00:00
parent f7d65c43d0
commit ffbe87eba2
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ static void renderLocation(Location Loc) {
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 @@ static void renderText(const char *Message, const Diag::Arg *Args) {
break;
}
case Diag::AK_Pointer:
Printf("0x%zx", (uptr)A.Pointer);
Printf("%p", A.Pointer);
break;
}
}