mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Allow options: -O with -enforce-exclusivity.
This commit is contained in:
@@ -528,11 +528,6 @@ void parseExclusivityEnforcementOptions(const llvm::opt::Arg *A,
|
||||
Diags.diagnose(SourceLoc(), diag::error_unsupported_option_argument,
|
||||
A->getOption().getPrefixedName(), A->getValue());
|
||||
}
|
||||
if (Opts.shouldOptimize() && Opts.EnforceExclusivityDynamic) {
|
||||
Diags.diagnose(SourceLoc(),
|
||||
diag::warning_argument_not_supported_with_optimization,
|
||||
A->getOption().getPrefixedName() + A->getValue());
|
||||
}
|
||||
}
|
||||
|
||||
static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
|
||||
Reference in New Issue
Block a user