mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Constraint graph] Enable one-way constraints in function builders.
Enable one-way constraints by default for function builders, finishing rdar://problem/50150793.
This commit is contained in:
@@ -441,8 +441,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
|
||||
if (Args.getLastArg(OPT_solver_disable_shrink))
|
||||
Opts.SolverDisableShrink = true;
|
||||
if (Args.getLastArg(OPT_enable_function_builder_one_way_constraints))
|
||||
Opts.FunctionBuilderOneWayConstraints = true;
|
||||
Opts.FunctionBuilderOneWayConstraints =
|
||||
Args.hasFlag(OPT_enable_function_builder_one_way_constraints,
|
||||
OPT_disable_function_builder_one_way_constraints,
|
||||
/*Default=*/true);
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_value_recursion_threshold)) {
|
||||
unsigned threshold;
|
||||
|
||||
Reference in New Issue
Block a user