[lld] r341823 - Remove an effectively unused local variable.

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 06:20:16 PDT 2018


Author: nico
Date: Mon Sep 10 06:20:16 2018
New Revision: 341823

URL: http://llvm.org/viewvc/llvm-project?rev=341823&view=rev
Log:
Remove an effectively unused local variable.

Modified:
    lld/trunk/COFF/Writer.cpp

Modified: lld/trunk/COFF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.cpp?rev=341823&r1=341822&r2=341823&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.cpp (original)
+++ lld/trunk/COFF/Writer.cpp Mon Sep 10 06:20:16 2018
@@ -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<CVDebugRecordChunk>();
-    BuildId = CVChunk;
-    DebugRecords.push_back(CVChunk);
+    BuildId = make<CVDebugRecordChunk>();
+    DebugRecords.push_back(BuildId);
 
     for (Chunk *C : DebugRecords)
       DebugInfoSec->addChunk(C);




More information about the llvm-commits mailing list