[MachO] Add a couple of missing braces.

Differential Revision:  https://reviews.llvm.org/D21979

llvm-svn: 276213
This commit is contained in:
Davide Italiano 2016-07-20 23:55:34 +00:00
parent 0e0e2d5d26
commit fbcf69587e
1 changed files with 2 additions and 1 deletions

View File

@ -739,9 +739,10 @@ bool parse(llvm::ArrayRef<const char *> 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;