From: Nico Weber Date: Mon, 10 Sep 2018 13:20:16 +0000 (+0000) Subject: Remove an effectively unused local variable. X-Git-Tag: llvmorg-8.0.0-rc1~9103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc0836603512f86737cb34b2b18f2520d5f9a5d4;p=platform%2Fupstream%2Fllvm.git Remove an effectively unused local variable. llvm-svn: 341823 --- diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp index e208812..9d69b38 100644 --- a/lld/COFF/Writer.cpp +++ b/lld/COFF/Writer.cpp @@ -528,9 +528,8 @@ void Writer::createMiscChunks() { // output a PDB no matter what, and this chunk provides the only means of // allowing a debugger to match a PDB and an executable. So we need it even // if we're ultimately not going to write CodeView data to the PDB. - auto *CVChunk = make(); - BuildId = CVChunk; - DebugRecords.push_back(CVChunk); + BuildId = make(); + DebugRecords.push_back(BuildId); for (Chunk *C : DebugRecords) DebugInfoSec->addChunk(C);