commit 95f45cfc34cd5e77dad2318cab27194535e14d16 (tree) parent 02713e8d8aa9641616bd85e77dda784009c96113 Author: Andrew Kelley <superjoe30@gmail.com> Date: Wed, 25 Jul 2018 02:36:29 -0400 patch LLD to fix COFF crashing when linking twice in same process closes #1289 Diffstat:
| M | deps/lld/COFF/Driver.cpp | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/deps/lld/COFF/Driver.cpp b/deps/lld/COFF/Driver.cpp @@ -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(); }