From cc0836603512f86737cb34b2b18f2520d5f9a5d4 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 10 Sep 2018 13:20:16 +0000 Subject: [PATCH] Remove an effectively unused local variable. llvm-svn: 341823 --- lld/COFF/Writer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.7.4