Skip to content

Commit a7e8034

Browse files
committed
[ConstraintSystem] NFC: Print type variables embedded in common result type
1 parent 578adca commit a7e8034

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8898,9 +8898,11 @@ bool ConstraintSystem::simplifyAppliedOverloadsImpl(
88988898
// If we have a common result type, bind the expected result type to it.
88998899
if (commonResultType && !commonResultType->is<ErrorType>()) {
89008900
if (isDebugMode()) {
8901+
PrintOptions PO;
8902+
PO.PrintTypesForDebugging = true;
89018903
llvm::errs().indent(solverState ? solverState->depth * 2 : 0)
89028904
<< "(common result type for $T" << fnTypeVar->getID() << " is "
8903-
<< commonResultType.getString()
8905+
<< commonResultType.getString(PO)
89048906
<< ")\n";
89058907
}
89068908

0 commit comments

Comments
 (0)