File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -493,8 +493,6 @@ bool DisjunctionStep::shouldStopAt(const DisjunctionChoice &choice) const {
493
493
bool DisjunctionStep::shortCircuitDisjunctionAt (
494
494
Constraint *currentChoice, Constraint *lastSuccessfulChoice) const {
495
495
auto &ctx = CS.getASTContext ();
496
- if (ctx.LangOpts .DisableConstraintSolverPerformanceHacks )
497
- return false ;
498
496
499
497
// If the successfully applied constraint is favored, we'll consider that to
500
498
// be the "best".
@@ -515,6 +513,9 @@ bool DisjunctionStep::shortCircuitDisjunctionAt(
515
513
if (currentChoice->getFix () && !lastSuccessfulChoice->getFix ())
516
514
return true ;
517
515
516
+ if (ctx.LangOpts .DisableConstraintSolverPerformanceHacks )
517
+ return false ;
518
+
518
519
if (auto restriction = currentChoice->getRestriction ()) {
519
520
// Non-optional conversions are better than optional-to-optional
520
521
// conversions.
You can’t perform that action at this time.
0 commit comments