Skip to content

Commit fb80c17

Browse files
ojhuntAaronBallman
andauthored
Update clang/lib/AST/Type.cpp
Co-authored-by: Aaron Ballman <[email protected]>
1 parent e721929 commit fb80c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3100,7 +3100,7 @@ bool Type::isStdByteType() const {
31003100

31013101
TemplateDecl *Type::getSpecializedTemplateDecl() const {
31023102
const auto *DesugaredType = getUnqualifiedDesugaredType();
3103-
if (auto *Specialization = DesugaredType->getAs<TemplateSpecializationType>())
3103+
if (const auto *Specialization = DesugaredType->getAs<TemplateSpecializationType>())
31043104
return Specialization->getTemplateName().getAsTemplateDecl();
31053105
if (const auto *Record = DesugaredType->getAsCXXRecordDecl()) {
31063106
if (auto *CTS = dyn_cast<ClassTemplateSpecializationDecl>(Record))

0 commit comments

Comments
 (0)