mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Clean-up solver state management for a constraint system.
Make SolverState manage whether the ConstraintSystem it belongs to has a current SolverState. Also a couple minor formatting fixes for ternary expressions involving solverState.
This commit is contained in:
@@ -1449,7 +1449,7 @@ void ConstraintSystem::resolveOverload(ConstraintLocator *locator,
|
||||
refType};
|
||||
if (TC.getLangOpts().DebugConstraintSolver) {
|
||||
auto &log = getASTContext().TypeCheckerDebug->getStream();
|
||||
log.indent(solverState? solverState->depth * 2 : 2)
|
||||
log.indent(solverState ? solverState->depth * 2 : 2)
|
||||
<< "(overload set choice binding "
|
||||
<< boundType->getString() << " := "
|
||||
<< refType->getString() << ")\n";
|
||||
|
||||
Reference in New Issue
Block a user