Skip to content

Commit e58a6aa

Browse files
authored
Merge pull request swiftlang#20093 from xedin/print-expr-after-solution
[ConstraintSystem] NFC: Print type-checked expression after all callb…
2 parents 7932f20 + f74df2c commit e58a6aa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,13 +2038,6 @@ Type TypeChecker::typeCheckExpression(Expr *&expr, DeclContext *dc,
20382038
return Type();
20392039
}
20402040

2041-
if (getLangOpts().DebugConstraintSolver) {
2042-
auto &log = Context.TypeCheckerDebug->getStream();
2043-
log << "---Type-checked expression---\n";
2044-
result->dump(log);
2045-
log << "\n";
2046-
}
2047-
20482041
// If there's a listener, notify it that we've applied the solution.
20492042
if (listener) {
20502043
result = listener->appliedSolution(solution, result);
@@ -2053,6 +2046,13 @@ Type TypeChecker::typeCheckExpression(Expr *&expr, DeclContext *dc,
20532046
}
20542047
}
20552048

2049+
if (getLangOpts().DebugConstraintSolver) {
2050+
auto &log = Context.TypeCheckerDebug->getStream();
2051+
log << "---Type-checked expression---\n";
2052+
result->dump(log);
2053+
log << "\n";
2054+
}
2055+
20562056
// Unless the client has disabled them, perform syntactic checks on the
20572057
// expression now.
20582058
if (!cs.shouldSuppressDiagnostics() &&

0 commit comments

Comments
 (0)