Skip to content

Commit 8962329

Browse files
author
Amritpan Kaur
committed
[CSStep] Remove extraneous ) printing after PotentialBindings/Disjunctions.
Moved `debugLogger` into each if-block so it's indentation doesn't affect next `isDebugMode`.
1 parent 20efa92 commit 8962329

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/Sema/CSStep.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,11 @@ StepResult ComponentStep::take(bool prevFailed) {
358358
auto *disjunction = CS.selectDisjunction();
359359

360360
if (CS.isDebugMode()) {
361-
PrintOptions PO;
362-
PO.PrintTypesForDebugging = true;
363-
364-
auto &log = getDebugLogger();
365361
if (!potentialBindings.empty()) {
362+
auto &log = getDebugLogger();
366363
log << "(Potential Binding(s): " << '\n';
367364
log << potentialBindings;
368365
}
369-
log.indent(CS.solverState->getCurrentIndent());
370366

371367
SmallVector<Constraint *, 4> disjunctions;
372368
CS.collectDisjunctions(disjunctions);
@@ -392,7 +388,6 @@ StepResult ComponentStep::take(bool prevFailed) {
392388
log << ")\n";
393389
}
394390
}
395-
log << ")\n";
396391
}
397392

398393
if (CS.shouldAttemptFixes()) {

0 commit comments

Comments
 (0)