Skip to content

Commit b47698b

Browse files
committed
[TypeChecker] NFC: Add debug logging before applying solution in applyFunctionBuilderBodyTransform
1 parent d89c096 commit b47698b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Sema/BuilderTransform.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,13 @@ Optional<BraceStmt *> TypeChecker::applyFunctionBuilderBodyTransform(
15641564
// The system was salvaged; continue on as if nothing happened.
15651565
}
15661566

1567+
if (cs.isDebugMode()) {
1568+
auto &log = llvm::errs();
1569+
log << "--- Applying Solution ---\n";
1570+
solutions.front().dump(log);
1571+
log << '\n';
1572+
}
1573+
15671574
// FIXME: Shouldn't need to do this.
15681575
cs.applySolution(solutions.front());
15691576

0 commit comments

Comments
 (0)