llvm-readobj: Fix an unused variable after r241764
llvm-svn: 241783
diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp
index c6ff1c4d..ccb542e 100644
--- a/llvm/tools/llvm-readobj/COFFDumper.cpp
+++ b/llvm/tools/llvm-readobj/COFFDumper.cpp
@@ -597,8 +597,9 @@
// in the line table. The filename string is accessed using double
// indirection to the string table subsection using the index subsection.
uint32_t OffsetInIndex = DE.getU32(&Offset),
- SegmentLength = DE.getU32(&Offset),
- FullSegmentSize = DE.getU32(&Offset);
+ SegmentLength = DE.getU32(&Offset);
+ Offset += sizeof(uint32_t); // Skip FullSegmentSize
+
uint32_t FilenameOffset;
{
DataExtractor SDE(CVFileIndexToStringOffsetTable, true, 4);