diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-23 22:34:21 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-23 22:34:21 +0000 |
commit | f8552e67e91177911351f3ffa8028d44ec1e8b66 (patch) | |
tree | 4c70965c681eab33bdf20f2abdcce74ab1c4c29f | |
parent | 45a3fd206fb06f77a08968c99a8172cbf2ccdd0f (diff) | |
download | bcm5719-llvm-f8552e67e91177911351f3ffa8028d44ec1e8b66.tar.gz bcm5719-llvm-f8552e67e91177911351f3ffa8028d44ec1e8b66.zip |
[DWARF] Use 32-bit format specifier for offset
This should fix PR42730.
llvm-svn: 366859
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 3f9ac13ec7c..d559935d53f 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -201,7 +201,7 @@ parseV5EntryFormat(const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, return createStringError( errc::invalid_argument, "failed to parse entry content descriptions at offset " - "0x%8.8" PRIx64 + "0x%8.8" PRIx32 " because offset extends beyond the prologue end at offset " "0x%8.8" PRIx64, *OffsetPtr, EndPrologueOffset); @@ -244,7 +244,7 @@ parseV5DirFileTables(const DWARFDataExtractor &DebugLineData, return createStringError( errc::invalid_argument, "failed to parse directory entry at offset " - "0x%8.8" PRIx64 + "0x%8.8" PRIx32 " because offset extends beyond the prologue end at offset " "0x%8.8" PRIx64, *OffsetPtr, EndPrologueOffset); @@ -280,7 +280,7 @@ parseV5DirFileTables(const DWARFDataExtractor &DebugLineData, return createStringError( errc::invalid_argument, "failed to parse file entry at offset " - "0x%8.8" PRIx64 + "0x%8.8" PRIx32 " because offset extends beyond the prologue end at offset " "0x%8.8" PRIx64, *OffsetPtr, EndPrologueOffset); @@ -382,8 +382,8 @@ Error DWARFDebugLine::Prologue::parse(const DWARFDataExtractor &DebugLineData, errc::invalid_argument, "parsing line table prologue at 0x%8.8" PRIx64 " found an invalid directory or file table description at" - " 0x%8.8" PRIx64, - PrologueOffset, (uint64_t)*OffsetPtr), + " 0x%8.8" PRIx32, + PrologueOffset, *OffsetPtr), std::move(e)); } } else @@ -394,8 +394,8 @@ Error DWARFDebugLine::Prologue::parse(const DWARFDataExtractor &DebugLineData, return createStringError(errc::invalid_argument, "parsing line table prologue at 0x%8.8" PRIx64 " should have ended at 0x%8.8" PRIx64 - " but it ended at 0x%8.8" PRIx64, - PrologueOffset, EndPrologueOffset, (uint64_t)*OffsetPtr); + " but it ended at 0x%8.8" PRIx32, + PrologueOffset, EndPrologueOffset, *OffsetPtr); return Error::success(); } |