diff options
author | Tobias Hieta <tobias.hieta@ubisoft.com> | 2022-04-13 17:39:22 +0300 |
---|---|---|
committer | Tobias Hieta <tobias.hieta@ubisoft.com> | 2022-04-13 17:40:30 +0300 |
commit | 837d16fb4c1cb00c5d0c72a0dff543f0bd5ff770 (patch) | |
tree | 88809aeaff790a84d0384ed06c4c21481e4c5cb4 /lld | |
parent | 2af43854778a6cff346071e150fe6c2e0afa7f73 (diff) |
[NFC] Simplify /noimplib argument logic
Diffstat (limited to 'lld')
-rw-r--r-- | lld/COFF/Driver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 4ae75de4586a..d1c68d1ba125 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -1673,8 +1673,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) { if (auto *arg = args.getLastArg(OPT_implib)) config->implib = arg->getValue(); - if (auto *arg = args.getLastArg(OPT_noimplib)) - config->noimplib = true; + config->noimplib = args.hasArg(OPT_noimplib); // Handle /opt. bool doGC = debug == DebugKind::None || args.hasArg(OPT_profile); |