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.
1 parent e721929 commit fb80c17Copy full SHA for fb80c17
clang/lib/AST/Type.cpp
@@ -3100,7 +3100,7 @@ bool Type::isStdByteType() const {
3100
3101
TemplateDecl *Type::getSpecializedTemplateDecl() const {
3102
const auto *DesugaredType = getUnqualifiedDesugaredType();
3103
- if (auto *Specialization = DesugaredType->getAs<TemplateSpecializationType>())
+ if (const auto *Specialization = DesugaredType->getAs<TemplateSpecializationType>())
3104
return Specialization->getTemplateName().getAsTemplateDecl();
3105
if (const auto *Record = DesugaredType->getAsCXXRecordDecl()) {
3106
if (auto *CTS = dyn_cast<ClassTemplateSpecializationDecl>(Record))
0 commit comments