authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-25 02:36:29-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-25 02:36:29-04:00
log95f45cfc34cd5e77dad2318cab27194535e14d16
tree75eb9a7335dbfdcfe8c5f21a3f7a3af55c371e96
parent02713e8d8aa9641616bd85e77dda784009c96113

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

closes #1289

1 files changed, 3 insertions(+), 0 deletions(-)

deps/lld/COFF/Driver.cpp+3
...@@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {...@@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {
72 exitLld(errorCount() ? 1 : 0);72 exitLld(errorCount() ? 1 : 0);
7373
74 freeArena();74 freeArena();
75 ObjFile::Instances.clear();
76 ImportFile::Instances.clear();
77 BitcodeFile::Instances.clear();
75 return !errorCount();78 return !errorCount();
76}79}
7780