diff options
Diffstat (limited to 'lld/COFF/Driver.cpp')
-rw-r--r-- | lld/COFF/Driver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 19c87028f1c..45befa6a99a 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -81,6 +81,7 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) { ObjFile::Instances.clear(); ImportFile::Instances.clear(); BitcodeFile::Instances.clear(); + memset(MergeChunk::Instances, 0, sizeof(MergeChunk::Instances)); return !errorCount(); } |