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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366189 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
igorkudrin committed Jul 16, 2019
1 parent d296495 commit 43f716b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 43f716b

Please sign in to comment.