Skip to content

Commit 98902ef

Browse files
committed
AST: Set PrintForSIL when printing replacement types in SubstitutionMaps
This prints opened existentials with @opened("...") rather than just printing the erased existential type.
1 parent 3904fe8 commit 98902ef

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)