Skip to content

Commit f9c0d25

Browse files
committed
[CS] Deindent a few debug messages
The additional indentation implies that they're taking place in a new solver scope, but this isn't the case.
1 parent 49ca2d0 commit f9c0d25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8049,7 +8049,7 @@ bool ConstraintSystem::simplifyAppliedOverloadsImpl(
80498049
ASTContext &ctx = getASTContext();
80508050
if (ctx.TypeCheckerOpts.DebugConstraintSolver) {
80518051
auto &log = ctx.TypeCheckerDebug->getStream();
8052-
log.indent(solverState ? solverState->depth * 2 + 2 : 0)
8052+
log.indent(solverState ? solverState->depth * 2 : 0)
80538053
<< "(common result type for $T" << fnTypeVar->getID() << " is "
80548054
<< commonResultType.getString()
80558055
<< ")\n";
@@ -9191,7 +9191,7 @@ bool ConstraintSystem::recordFix(ConstraintFix *fix, unsigned impact) {
91919191
auto &ctx = getASTContext();
91929192
if (ctx.TypeCheckerOpts.DebugConstraintSolver) {
91939193
auto &log = ctx.TypeCheckerDebug->getStream();
9194-
log.indent(solverState ? solverState->depth * 2 + 2 : 0)
9194+
log.indent(solverState ? solverState->depth * 2 : 0)
91959195
<< "(attempting fix ";
91969196
fix->print(log);
91979197
log << ")\n";

lib/Sema/CSSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ ConstraintSystem::filterDisjunction(
14241424

14251425
if (ctx.TypeCheckerOpts.DebugConstraintSolver) {
14261426
auto &log = ctx.TypeCheckerDebug->getStream();
1427-
log.indent(solverState ? solverState->depth * 2 + 2 : 0)
1427+
log.indent(solverState ? solverState->depth * 2 : 0)
14281428
<< "(disabled disjunction term ";
14291429
constraint->print(log, &ctx.SourceMgr);
14301430
log << ")\n";
@@ -1485,7 +1485,7 @@ ConstraintSystem::filterDisjunction(
14851485

14861486
if (ctx.TypeCheckerOpts.DebugConstraintSolver) {
14871487
auto &log = ctx.TypeCheckerDebug->getStream();
1488-
log.indent(solverState ? solverState->depth * 2 + 2 : 0)
1488+
log.indent(solverState ? solverState->depth * 2 : 0)
14891489
<< "(introducing single enabled disjunction term ";
14901490
choice->print(log, &ctx.SourceMgr);
14911491
log << ")\n";

0 commit comments

Comments
 (0)