summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 3cb76c4ebaa..a312eb2a126 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -422,7 +422,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
}
// Use the default entry name if /entry option is not given.
- if (!parsedArgs->getLastArg(OPT_entry))
+ if (ctx.entrySymbolName().empty())
setDefaultEntrySymbolName(ctx);
// Arguments after "--" are interpreted as filenames even if they
OpenPOWER on IntegriCloud