LLD COFF: close handles to objects used to link

fixes test failures on windows
See #302

patch sent upstream:
http://lists.llvm.org/pipermail/llvm-dev/2017-October/118234.html
This commit is contained in:
Andrew Kelley 2017-10-15 22:09:25 -04:00
parent 562f91e875
commit 2a08116788

View File

@ -61,6 +61,7 @@ bool link(ArrayRef<const char *> Args, raw_ostream &Diag) {
(ErrorOS == &llvm::errs() && Process::StandardErrHasColors());
Driver = make<LinkerDriver>();
Driver->link(Args);
freeArena();
return !ErrorCount;
}