From 837d16fb4c1cb00c5d0c72a0dff543f0bd5ff770 Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Wed, 13 Apr 2022 16:39:22 +0200 Subject: [PATCH] [NFC] Simplify /noimplib argument logic --- lld/COFF/Driver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 4ae75de..d1c68d1 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -1673,8 +1673,7 @@ void LinkerDriver::linkerMain(ArrayRef 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); -- 2.7.4