[ConstraintSystem] Refactor solver state depth to its own function for easier indent editing in future.

This commit is contained in:
Amritpan Kaur
2022-08-10 12:25:05 -07:00
parent e30181d8b7
commit fd41a39294
9 changed files with 24 additions and 21 deletions

View File

@@ -3528,7 +3528,7 @@ void ConstraintSystem::resolveOverload(ConstraintLocator *locator,
if (isDebugMode()) {
PrintOptions PO;
PO.PrintTypesForDebugging = true;
llvm::errs().indent(solverState ? solverState->depth * 2 : 2)
llvm::errs().indent(solverState ? solverState->getCurrentIndent() : 2)
<< "(overload set choice binding "
<< boundType->getString(PO) << " := "
<< adjustedRefType->getString(PO) << ")\n";