Skip to content

Commit 633c1c6

Browse files
committed
AST: TypeWalker should not walk the desugared type of a NameAliasType
Other sugared types only walk their structural components, and not their desugaring.
1 parent e3a4b68 commit 633c1c6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/AST/TypeWalker.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ class Traversal : public TypeVisitor<Traversal, bool>
3939
if (auto parent = ty->getParent())
4040
if (doIt(parent)) return true;
4141

42-
if (doIt(ty->getSinglyDesugaredType()))
43-
return true;
44-
4542
for (auto arg : ty->getInnermostGenericArgs())
4643
if (doIt(arg))
4744
return true;

0 commit comments

Comments
 (0)