Skip to content

Commit 8a3300b

Browse files
committed
Sema: We no longer call PotentialBindings::infer() from undo()
1 parent 09f78bf commit 8a3300b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ void PotentialBindings::infer(ConstraintSystem &CS,
19181918
return;
19191919

19201920
// Record the change, if there are active scopes.
1921-
if (CS.solverState && !CS.solverState->Trail.isUndoActive())
1921+
if (CS.solverState)
19221922
CS.recordChange(SolverTrail::Change::InferredBindings(TypeVar, constraint));
19231923

19241924
switch (constraint->getKind()) {

0 commit comments

Comments
 (0)