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:
@@ -4039,7 +4039,7 @@ bool ConstraintSystem::recordFix(Fix fix, ConstraintLocatorBuilder locator) {
|
||||
auto &ctx = getASTContext();
|
||||
if (ctx.LangOpts.DebugConstraintSolver) {
|
||||
auto &log = ctx.TypeCheckerDebug->getStream();
|
||||
log.indent(solverState? solverState->depth * 2 + 2 : 0)
|
||||
log.indent(solverState ? solverState->depth * 2 + 2 : 0)
|
||||
<< "(attempting fix ";
|
||||
fix.print(log, this);
|
||||
log << " @";
|
||||
|
||||
Reference in New Issue
Block a user