[PATCH] D63042: [LLD][COFF] Fix missing MergeChunk::Instances cleanup in COFF::link()

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 05:13:43 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL362930: [LLD][COFF] Fix missing MergeChunk::Instances cleanup in COFF::link() (authored by ruiu, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D63042?vs=203666&id=203806#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63042/new/

https://reviews.llvm.org/D63042

Files:
  lld/trunk/COFF/Driver.cpp


Index: lld/trunk/COFF/Driver.cpp
===================================================================
--- lld/trunk/COFF/Driver.cpp
+++ lld/trunk/COFF/Driver.cpp
@@ -81,6 +81,7 @@
   ObjFile::Instances.clear();
   ImportFile::Instances.clear();
   BitcodeFile::Instances.clear();
+  memset(MergeChunk::Instances, 0, sizeof(MergeChunk::Instances));
   return !errorCount();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63042.203806.patch
Type: text/x-patch
Size: 377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190610/95622723/attachment.bin>


More information about the llvm-commits mailing list