[ELF] Re-initialize InputFile::isInGroup so that elf::link can be called more than...
authorFangrui Song <i@maskray.me>
Fri, 14 Aug 2020 22:38:05 +0000 (15:38 -0700)
committerFangrui Song <i@maskray.me>
Fri, 14 Aug 2020 22:38:41 +0000 (15:38 -0700)
lld/ELF/Driver.cpp

index e183924..12c8e5d 100644 (file)
@@ -1306,6 +1306,7 @@ void LinkerDriver::createFiles(opt::InputArgList &args) {
   std::vector<std::tuple<bool, bool, bool>> 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: