[NFC] Simplify /noimplib argument logic

This commit is contained in:
Tobias Hieta 2022-04-13 16:39:22 +02:00
parent 2af4385477
commit 837d16fb4c
1 changed files with 1 additions and 2 deletions

View File

@ -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);