Sema: Record expression patterns in the trail

This commit is contained in:
Slava Pestov
2024-10-04 13:49:44 -04:00
parent 500acd122a
commit 1d177d0187
4 changed files with 24 additions and 16 deletions

View File

@@ -489,6 +489,10 @@ void SolverTrail::Change::undo(ConstraintSystem &cs) const {
case ChangeKind::RecordedPotentialThrowSite:
cs.removePotentialThrowSite(TheCatchNode);
break;
case ChangeKind::RecordedExprPattern:
cs.removeExprPatternFor(TheExpr);
break;
}
}