Skip to content

Commit 14e578f

Browse files
authored
Merge pull request #9554 from swiftlang/egorzhdan/20240723-class-template-packs
🍒[Clang] Dispatch default overloads of `TemplateArgumentVisitor` to the implementation
2 parents d239314 + 197ebcb commit 14e578f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/AST/TemplateArgumentVisitor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class Base {
5252
#define VISIT_METHOD(CATEGORY) \
5353
RetTy Visit##CATEGORY##TemplateArgument(REF(TemplateArgument) TA, \
5454
ParamTys... P) { \
55-
return VisitTemplateArgument(TA, std::forward<ParamTys>(P)...); \
55+
return static_cast<ImplClass *>(this)->VisitTemplateArgument( \
56+
TA, std::forward<ParamTys>(P)...); \
5657
}
5758

5859
VISIT_METHOD(Null);

0 commit comments

Comments
 (0)