[lld] r276213 - [MachO] Add a couple of missing braces.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 16:55:34 PDT 2016
Author: davide
Date: Wed Jul 20 18:55:34 2016
New Revision: 276213
URL: http://llvm.org/viewvc/llvm-project?rev=276213&view=rev
Log:
[MachO] Add a couple of missing braces.
Differential Revision: https://reviews.llvm.org/D21979
Modified:
lld/trunk/lib/Driver/DarwinLdDriver.cpp
Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=276213&r1=276212&r2=276213&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Wed Jul 20 18:55:34 2016
@@ -739,9 +739,10 @@ bool parse(llvm::ArrayRef<const char *>
}
break;
case MachOLinkingContext::OS::iOS_simulator:
- if (pie->getOption().getID() == OPT_no_pie)
+ if (pie->getOption().getID() == OPT_no_pie) {
diagnostics << "iOS simulator programs must be built PIE\n";
return false;
+ }
break;
case MachOLinkingContext::OS::unknown:
break;
More information about the llvm-commits
mailing list