diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 29e6389ad44f..67666637b2c2 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -542,9 +542,10 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], diagnostics << "warning: -multi_module is obsolete and being ignored\n"; } else { - if (ctx.outputMachOType() != llvm::MachO::MH_DYLIB) + if (ctx.outputMachOType() != llvm::MachO::MH_DYLIB) { diagnostics << "-single_module only used when creating a dylib\n"; return false; + } } }