[llvm] r241783 - llvm-readobj: Fix an unused variable after r241764
Justin Bogner
mail at justinbogner.com
Wed Jul 8 21:27:36 PDT 2015
Author: bogner
Date: Wed Jul 8 23:27:36 2015
New Revision: 241783
URL: http://llvm.org/viewvc/llvm-project?rev=241783&view=rev
Log:
llvm-readobj: Fix an unused variable after r241764
Modified:
llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/COFFDumper.cpp?rev=241783&r1=241782&r2=241783&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/COFFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/COFFDumper.cpp Wed Jul 8 23:27:36 2015
@@ -597,8 +597,9 @@ void COFFDumper::printCodeViewDebugInfo(
// 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);
More information about the llvm-commits
mailing list