Skip to content

Commit 170280c

Browse files
committed
AST: Fix Type::walk() to visit the count type of a PackExpansionType
1 parent 9a9ced9 commit 170280c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/TypeWalker.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class Traversal : public TypeVisitor<Traversal, bool>
5757
}
5858

5959
bool visitPackExpansionType(PackExpansionType *ty) {
60+
if (doIt(ty->getCountType()))
61+
return true;
62+
6063
return doIt(ty->getPatternType());
6164
}
6265

0 commit comments

Comments
 (0)