[PATCH] D21979: [LLD/MachO] Add a couple of missing braces

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 4 14:05:41 PDT 2016


davide created this revision.
davide added reviewers: pete, lhames.
davide added a subscriber: llvm-commits.

Found by visual inspection. Hope it makes sense to you guys =)

http://reviews.llvm.org/D21979

Files:
  lib/Driver/DarwinLdDriver.cpp

Index: lib/Driver/DarwinLdDriver.cpp
===================================================================
--- lib/Driver/DarwinLdDriver.cpp
+++ lib/Driver/DarwinLdDriver.cpp
@@ -739,9 +739,10 @@
         }
         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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21979.62711.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160704/757afd38/attachment.bin>


More information about the llvm-commits mailing list