From: Davide Italiano Date: Wed, 20 Jul 2016 23:55:34 +0000 (+0000) Subject: [MachO] Add a couple of missing braces. X-Git-Tag: llvmorg-4.0.0-rc1~14697 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbcf69587e203ea0181bf788d9567250c757d7b5;p=platform%2Fupstream%2Fllvm.git [MachO] Add a couple of missing braces. Differential Revision: https://reviews.llvm.org/D21979 llvm-svn: 276213 --- diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 496b651..f953669 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -739,9 +739,10 @@ bool parse(llvm::ArrayRef args, MachOLinkingContext &ctx, } 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;