projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f452fb
)
[lld/mac] remove redundant null check
author
Nico Weber
<thakis@chromium.org>
Sun, 10 Jan 2021 02:17:59 +0000
(21:17 -0500)
committer
Nico 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
patch
|
blob
|
history
diff --git
a/lld/MachO/Driver.cpp
b/lld/MachO/Driver.cpp
index
2e52ef9
..
857c999
100644
(file)
--- a/
lld/MachO/Driver.cpp
+++ b/
lld/MachO/Driver.cpp
@@
-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);