patch LLD to fix COFF crashing when linking twice in same process

closes #1289
This commit is contained in:
Andrew Kelley 2018-07-25 02:36:29 -04:00
parent 02713e8d8a
commit 95f45cfc34

View File

@ -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();
}