Skip to content

Commit 41777b9

Browse files
committed
[AST] Remove a call to mapOutOfContext in ASTPrinter
It appears that the call is not necessary anymore.
1 parent af789d5 commit 41777b9

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)