summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Driver/Driver.cpp')
-rw-r--r--lld/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp
index dd744e13366..6fdb34399fe 100644
--- a/lld/lib/Driver/Driver.cpp
+++ b/lld/lib/Driver/Driver.cpp
@@ -107,7 +107,7 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
// Do core linking.
ScopedTask resolveTask(getDefaultDomain(), "Resolve");
Resolver resolver(context);
- if (resolver.resolve()) {
+ if (!resolver.resolve()) {
if (!context.allowRemainingUndefines())
return false;
}
OpenPOWER on IntegriCloud