Skip to content

Commit efb41e6

Browse files
committed
Add forgotten use of non-canonical TemplatedDecl
1 parent 0dda28d commit efb41e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ TemplateDeclInstantiator::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) {
20032003
// Link the instantiation back to the pattern *unless* this is a
20042004
// non-definition friend declaration.
20052005
if (!InstTemplate->getInstantiatedFromMemberTemplate() &&
2006-
!(isFriend && !D->getTemplatedDecl()->isThisDeclarationADefinition()))
2006+
!(isFriend && !TemplatedDecl->isThisDeclarationADefinition()))
20072007
InstTemplate->setInstantiatedFromMemberTemplate(D);
20082008

20092009
// Make declarations visible in the appropriate context.

0 commit comments

Comments
 (0)