File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -730,21 +730,10 @@ void SolverTrail::undo(unsigned toIndex) {
730
730
ASSERT (!UndoActive);
731
731
UndoActive = true ;
732
732
733
- // FIXME: Undo all changes in the correct order!
734
733
for (unsigned i = Changes.size (); i > toIndex; i--) {
735
734
auto change = Changes[i - 1 ];
736
- if (change.Kind == ChangeKind::UpdatedTypeVariable) {
737
- LLVM_DEBUG (llvm::dbgs () << " - " ; change.dump (llvm::dbgs (), CS, 0 ));
738
- change.undo (CS);
739
- }
740
- }
741
-
742
- for (unsigned i = Changes.size (); i > toIndex; i--) {
743
- auto change = Changes[i - 1 ];
744
- if (change.Kind != ChangeKind::UpdatedTypeVariable) {
745
- LLVM_DEBUG (llvm::dbgs () << " - " ; change.dump (llvm::dbgs (), CS, 0 ));
746
- change.undo (CS);
747
- }
735
+ LLVM_DEBUG (llvm::dbgs () << " - " ; change.dump (llvm::dbgs (), CS, 0 ));
736
+ change.undo (CS);
748
737
}
749
738
750
739
Changes.resize (toIndex);
You can’t perform that action at this time.
0 commit comments