Skip to content

Commit c98fa2d

Browse files
committed
[FOLD] fix infinite recursion
1 parent 3764c06 commit c98fa2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/AST/ASTImporter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6190,7 +6190,8 @@ ExpectedDecl ASTNodeImporter::VisitClassTemplateDecl(ClassTemplateDecl *D) {
61906190
ExpectedDecl ASTNodeImporter::VisitClassTemplateSpecializationDecl(
61916191
ClassTemplateSpecializationDecl *D) {
61926192
ClassTemplateDecl *ClassTemplate;
6193-
if (Error Err = importInto(ClassTemplate, D->getSpecializedTemplate()))
6193+
if (Error Err = importInto(ClassTemplate,
6194+
D->getSpecializedTemplate()->getCanonicalDecl()))
61946195
return std::move(Err);
61956196

61966197
// Import the context of this declaration.

0 commit comments

Comments
 (0)