[lld/mac] remove redundant null check
authorNico Weber <thakis@chromium.org>
Sun, 10 Jan 2021 02:17:59 +0000 (21:17 -0500)
committerNico Weber <thakis@chromium.org>
Sun, 10 Jan 2021 02:18:32 +0000 (21:18 -0500)
This is already checked two lines up. No behavior change.

lld/MachO/Driver.cpp

index 2e52ef9..857c999 100644 (file)
@@ -750,7 +750,7 @@ bool macho::link(ArrayRef<const char *> argsArr, bool canExitEarly,
   if (const opt::Arg *arg =
           args.getLastArg(OPT_search_paths_first, OPT_search_dylibs_first))
     config->searchDylibsFirst =
-        (arg && arg->getOption().getID() == OPT_search_dylibs_first);
+        arg->getOption().getID() == OPT_search_dylibs_first;
 
   config->dylibCompatibilityVersion =
       parseDylibVersion(args, OPT_compatibility_version);