Skip to content

Commit 7d620e0

Browse files
author
git apple-llvm automerger
committed
Merge commit 'a5159e200eb2' from llvm.org/main into next
2 parents c7808a1 + a5159e2 commit 7d620e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4020,7 +4020,7 @@ const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const {
40204020
FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const {
40214021
if (TemplateOrSpecialization.isNull())
40224022
return TK_NonTemplate;
4023-
if (const auto *ND = TemplateOrSpecialization.dyn_cast<NamedDecl *>()) {
4023+
if (const auto *ND = dyn_cast<NamedDecl *>(TemplateOrSpecialization)) {
40244024
if (isa<FunctionDecl>(ND))
40254025
return TK_DependentNonTemplate;
40264026
assert(isa<FunctionTemplateDecl>(ND) &&

0 commit comments

Comments
 (0)