diff options
author | James Henderson <jh7370@my.bristol.ac.uk> | 2018-05-10 12:15:43 +0000 |
---|---|---|
committer | James Henderson <jh7370@my.bristol.ac.uk> | 2018-05-10 12:15:43 +0000 |
commit | 11a9de74c96ec08bcf6598ec986ccf4db7cb6207 (patch) | |
tree | fa1ad9ffc26e26ddbaf30355817f19baed0413a1 /llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | |
parent | 60851ec87f4c9d5c98914348a22d35a20b242601 (diff) | |
download | bcm5719-llvm-11a9de74c96ec08bcf6598ec986ccf4db7cb6207.tar.gz bcm5719-llvm-11a9de74c96ec08bcf6598ec986ccf4db7cb6207.zip |
Fix signed/unsigned comparison warning and print format
The print format was causing at least 2 unit-test failures from r331971.
The signed/unsigned comparison warnings only appeared to affect two lines but
it was unclear whether it might just pop up on other lines, so I have been
explicit in all the literals in the tests.
There were other bot unit-test failures that I am still investigating.
llvm-svn: 331978
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index dd99920491f..1ed632b5e0b 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -466,7 +466,7 @@ Expected<const DWARFDebugLine::LineTable *> DWARFDebugLine::getOrParseLineTable( DWARFDataExtractor &DebugLineData, uint32_t Offset, const DWARFContext &Ctx, const DWARFUnit *U, std::function<void(StringRef)> WarnCallback) { if (!DebugLineData.isValidOffset(Offset)) - return createError("offset 0x%8.8" PRIx64 + return createError("offset 0x%8.8" PRIx32 " is not a valid debug line section offset", Offset); |