We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7808a1 + a5159e2 commit 7d620e0Copy full SHA for 7d620e0
clang/lib/AST/Decl.cpp
@@ -4020,7 +4020,7 @@ const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const {
4020
FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const {
4021
if (TemplateOrSpecialization.isNull())
4022
return TK_NonTemplate;
4023
- if (const auto *ND = TemplateOrSpecialization.dyn_cast<NamedDecl *>()) {
+ if (const auto *ND = dyn_cast<NamedDecl *>(TemplateOrSpecialization)) {
4024
if (isa<FunctionDecl>(ND))
4025
return TK_DependentNonTemplate;
4026
assert(isa<FunctionTemplateDecl>(ND) &&
0 commit comments