[llvm] r366859 - [DWARF] Use 32-bit format specifier for offset
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 15:34:21 PDT 2019
Author: jdevlieghere
Date: Tue Jul 23 15:34:21 2019
New Revision: 366859
URL: http://llvm.org/viewvc/llvm-project?rev=366859&view=rev
Log:
[DWARF] Use 32-bit format specifier for offset
This should fix PR42730.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp?rev=366859&r1=366858&r2=366859&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp Tue Jul 23 15:34:21 2019
@@ -201,7 +201,7 @@ parseV5EntryFormat(const DWARFDataExtrac
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 DWARFDataExtr
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 DWARFDataExtr
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(co
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(co
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();
}
More information about the llvm-commits
mailing list