From: Fangrui Song Date: Fri, 14 Aug 2020 22:38:05 +0000 (-0700) Subject: [ELF] Re-initialize InputFile::isInGroup so that elf::link can be called more than... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b358daddea04ea3c52e0e5bd5e851cee47f7f27f;p=platform%2Fupstream%2Fllvm.git [ELF] Re-initialize InputFile::isInGroup so that elf::link can be called more than once --- diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index e183924..12c8e5d 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -1306,6 +1306,7 @@ void LinkerDriver::createFiles(opt::InputArgList &args) { std::vector> stack; // Iterate over argv to process input files and positional arguments. + InputFile::isInGroup = false; for (auto *arg : args) { switch (arg->getOption().getID()) { case OPT_library: