forked from OSchip/llvm-project
UBSan: use %p not 0x%zx when printing pointers.
llvm-svn: 172129
This commit is contained in:
parent
f7d65c43d0
commit
ffbe87eba2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue