Skip to content

Commit

Permalink
[DWARF] Fix an incorrect format specifier.
Browse files Browse the repository at this point in the history
This adjusts the format specifier because PCOffset is uint16_t.

Differential Revision: https://reviews.llvm.org/D64620

llvm-svn: 366189
  • Loading branch information
igorkudrin committed Jul 16, 2019
1 parent 860f7ec commit 74c350a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ Error DWARFDebugLine::LineTable::parse(
State.Row.Address.Address += PCOffset;
if (OS)
*OS
<< format(" (0x%16.16" PRIx64 ")", PCOffset);
<< format(" (0x%4.4" PRIx16 ")", PCOffset);
}
break;

Expand Down

0 comments on commit 74c350a

Please sign in to comment.