Skip to content

Commit c3192a0

Browse files
authored
Merge pull request swiftlang#30220 from slavapestov/substitution-map-print-tweak
AST: Set PrintForSIL when printing replacement types in SubstitutionMaps
2 parents 04007f2 + 98902ef commit c3192a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,8 +3204,11 @@ static void dumpSubstitutionMapRec(
32043204
out << "substitution ";
32053205
genericParams[i]->print(out);
32063206
out << " -> ";
3207-
if (replacementTypes[i])
3208-
replacementTypes[i]->print(out);
3207+
if (replacementTypes[i]) {
3208+
PrintOptions opts;
3209+
opts.PrintForSIL = true;
3210+
replacementTypes[i]->print(out, opts);
3211+
}
32093212
else
32103213
out << "<<unresolved concrete type>>";
32113214
printParen(')');

0 commit comments

Comments
 (0)