mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
@@ -10087,22 +10087,13 @@ void ConstraintSystem::simplifyDisjunctionChoice(Constraint *choice) {
|
||||
case ConstraintSystem::SolutionKind::Error:
|
||||
if (!failedConstraint)
|
||||
failedConstraint = choice;
|
||||
if (solverState)
|
||||
solverState->retireConstraint(choice);
|
||||
break;
|
||||
|
||||
case ConstraintSystem::SolutionKind::Solved:
|
||||
if (solverState)
|
||||
solverState->retireConstraint(choice);
|
||||
break;
|
||||
|
||||
case ConstraintSystem::SolutionKind::Unsolved:
|
||||
InactiveConstraints.push_back(choice);
|
||||
CG.addConstraint(choice);
|
||||
addUnsolvedConstraint(choice);
|
||||
break;
|
||||
}
|
||||
|
||||
// Record this as a generated constraint.
|
||||
if (solverState)
|
||||
solverState->addGeneratedConstraint(choice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user