Skip to content

Commit c17d35a

Browse files
committed
ASTDumper: Also show TypeAliasType substitution map
1 parent 243dbc0 commit c17d35a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4030,12 +4030,10 @@ namespace {
40304030
printCommon("type_alias_type", label);
40314031

40324032
printFieldQuoted(T->getDecl()->printRef(), "decl");
4033-
if (auto underlying = T->getSinglyDesugaredType()) {
4034-
printRec(underlying, "underlying");
4035-
} else {
4036-
// This can't actually happen
4037-
printFlag("unresolved_underlying");
4038-
}
4033+
printRec(T->getSinglyDesugaredType(), "underlying");
4034+
4035+
if (auto subs = T->getSubstitutionMap())
4036+
printRec(subs, "substitutions");
40394037

40404038
if (T->getParent())
40414039
printRec(T->getParent(), "parent");

0 commit comments

Comments
 (0)