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

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 17:03:10 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL276213: [MachO] Add a couple of missing braces. (authored by davide).

Changed prior to commit:
  https://reviews.llvm.org/D21979?vs=62711&id=64798#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D21979

Files:
  lld/trunk/lib/Driver/DarwinLdDriver.cpp

Index: lld/trunk/lib/Driver/DarwinLdDriver.cpp
===================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp
+++ lld/trunk/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.64798.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160721/6273ec6e/attachment.bin>


More information about the llvm-commits mailing list