Skip to content

Commit 95f45cf

Browse files
committedJul 25, 2018
patch LLD to fix COFF crashing when linking twice in same process
closes #1289
·
0.15.10.3.0
1 parent 02713e8 commit 95f45cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎deps/lld/COFF/Driver.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {
7272
exitLld(errorCount() ? 1 : 0);
7373

7474
freeArena();
75+
ObjFile::Instances.clear();
76+
ImportFile::Instances.clear();
77+
BitcodeFile::Instances.clear();
7578
return !errorCount();
7679
}
7780

0 commit comments

Comments
 (0)
Please sign in to comment.