search for: exitlld

Displaying 2 results from an estimated 2 matches for "exitlld".

Did you mean: exited
2018 Aug 08
2
LLD COFF library: crashes when lld::coff::link is called twice
...8 at 8:34 AM, Andrew Kelley via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Here's a fix: > > --- a/lld/COFF/Driver.cpp > +++ b/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(); > } > > I don't know how to make a test for this, since it depends on running LLD > twic...
2018 Jul 25
2
LLD COFF library: crashes when lld::coff::link is called twice
...pposed to be an arena allocator, which is freed here: bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) { // ... Driver = make<LinkerDriver>(); Driver->link(Args); // Call exit() if we can to avoid calling destructors. if (CanExitEarly) exitLld(errorCount() ? 1 : 0); freeArena(); // <------ here return !errorCount(); } Is there a simple fix for this? Downstream issue reference: https://github.com/ziglang/zig/issues/1289 Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://li...