Skip to content

Commit f916e09

Browse files
authored
Merge pull request #37082 from ahoppen/pr/no-map-out-of-context-in-astprinter
[AST] Remove a call to mapOutOfContext in ASTPrinter
2 parents 5b1f02d + 41777b9 commit f916e09

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,12 +756,6 @@ class PrintAST : public ASTVisitor<PrintAST> {
756756

757757
void printTransformedTypeWithOptions(Type T, PrintOptions options) {
758758
if (CurrentType && Current && CurrentType->mayHaveMembers()) {
759-
if (T->hasArchetype()) {
760-
// Get the interface type, since TypeLocs still have
761-
// contextual types in them.
762-
T = T->mapTypeOutOfContext();
763-
}
764-
765759
auto *M = Current->getDeclContext()->getParentModule();
766760
SubstitutionMap subMap;
767761

0 commit comments

Comments
 (0)