Skip to content

Commit

Permalink
patch LLD to fix COFF crashing when linking twice in same process
Browse files Browse the repository at this point in the history
closes #1289
  • Loading branch information
andrewrk committed Jul 25, 2018
1 parent 02713e8 commit 95f45cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/lld/COFF/Driver.cpp
Expand Up @@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {
exitLld(errorCount() ? 1 : 0);

freeArena();
ObjFile::Instances.clear();
ImportFile::Instances.clear();
BitcodeFile::Instances.clear();
return !errorCount();
}

Expand Down

0 comments on commit 95f45cf

Please sign in to comment.