mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove the '-disable-all-runtime-checks' option that predates current SIL-level
optimization/inlining scheme. It was actually used while building a release version of stdlib, and effectively disabled safety checks in debug builds. Swift SVN r19461
This commit is contained in:
@@ -726,8 +726,6 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
} else if (A->getOption().matches(OPT_Ofast)) {
|
||||
// Set the maximum optimization level and remove all runtime checks.
|
||||
IRGenOpts.OptLevel = MaxLevel;
|
||||
// Unchecked casts.
|
||||
IRGenOpts.DisableAllRuntimeChecks = true;
|
||||
// Removal of cond_fail (overflow on binary operations).
|
||||
Opts.RemoveRuntimeAsserts = true;
|
||||
Opts.AssertConfig = SILOptions::Fast;
|
||||
@@ -860,7 +858,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.TargetFeatures.push_back(A->getValue());
|
||||
}
|
||||
|
||||
Opts.DisableAllRuntimeChecks |= Args.hasArg(OPT_disable_all_runtime_checks);
|
||||
Opts.DisableLLVMOptzns |= Args.hasArg(OPT_disable_llvm_optzns);
|
||||
Opts.DisableLLVMARCOpts |= Args.hasArg(OPT_disable_llvm_arc_opts);
|
||||
Opts.EnableDynamicValueTypeLayout |=
|
||||
|
||||
Reference in New Issue
Block a user