From: Justin Bogner Date: Thu, 9 Jul 2015 04:27:36 +0000 (+0000) Subject: llvm-readobj: Fix an unused variable after r241764 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e1ef0c07e90f149245021ebe73a241a8d3516d4b;p=oota-llvm.git llvm-readobj: Fix an unused variable after r241764 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241783 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp index c6ff1c4dd21..ccb542e37e5 100644 --- a/tools/llvm-readobj/COFFDumper.cpp +++ b/tools/llvm-readobj/COFFDumper.cpp @@ -597,8 +597,9 @@ void COFFDumper::printCodeViewDebugInfo(const SectionRef &Section) { // 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);