Skip to content

Commit 5784f74

Browse files
author
Amritpan Kaur
committed
[CSStep] Fix extraneous ) printed during nested ConjunctionSteps.
~ConjunctionStep called before all steps are finished.
1 parent b44c948 commit 5784f74

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/Sema/CSStep.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,10 @@ StepResult ConjunctionStep::resume(bool prevFailed) {
875875
// attempted to apply information gained from the
876876
// isolated constraint to the outer context.
877877
if (Snapshot && Snapshot->isScoped()) {
878+
Snapshot.reset();
879+
if (CS.isDebugMode())
880+
getDebugLogger() << ")\n";
881+
878882
return done(/*isSuccess=*/!prevFailed);
879883
}
880884

lib/Sema/CSStep.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,6 @@ class ConjunctionStep : public BindingStep<ConjunctionElementProducer> {
999999
auto remainingTime = OuterTimeRemaining->second;
10001000
CS.Timer.emplace(anchor, CS, remainingTime);
10011001
}
1002-
1003-
if (CS.isDebugMode())
1004-
getDebugLogger() << ")\n";
10051002
}
10061003

10071004
StepResult resume(bool prevFailed) override;

0 commit comments

Comments
 (0)