[PATCH] D64620: [DWARF] Fix an incorrect format specifier.
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 02:15:59 PDT 2019
ikudrin created this revision.
ikudrin added reviewers: dblaikie, JDevlieghere.
Herald added a project: LLVM.
This adjusts the format specifier for `PCOffset` because it is `uint16_t`.
Repository:
rL LLVM
https://reviews.llvm.org/D64620
Files:
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
Index: lib/DebugInfo/DWARF/DWARFDebugLine.cpp
===================================================================
--- lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+++ lib/DebugInfo/DWARF/DWARFDebugLine.cpp
@@ -738,7 +738,7 @@
State.Row.Address.Address += PCOffset;
if (OS)
*OS
- << format(" (0x%16.16" PRIx64 ")", PCOffset);
+ << format(" (0x%4.4" PRIx16 ")", PCOffset);
}
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64620.209432.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190712/bb0a5583/attachment.bin>
More information about the llvm-commits
mailing list