@@ -3050,7 +3050,7 @@ void ASTMangler::appendAnyGenericType(const GenericTypeDecl *decl,
30503050 appendIdentifier (interface->getObjCRuntimeNameAsString ());
30513051 } else if (UseObjCRuntimeNames && protocol) {
30523052 appendIdentifier (protocol->getObjCRuntimeNameAsString ());
3053- } else if (auto ctsd = dyn_cast <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
3053+ } else if (isa <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
30543054 // If this is a `ClassTemplateSpecializationDecl`, it was
30553055 // imported as a Swift decl with `__CxxTemplateInst...` name.
30563056 // `ClassTemplateSpecializationDecl`'s name does not include information about
@@ -3247,7 +3247,7 @@ void ASTMangler::appendFunctionSignature(AnyFunctionType *fn,
32473247 appendOperator (" YK" );
32483248 }
32493249 }
3250- switch (auto diffKind = fn->getDifferentiabilityKind ()) {
3250+ switch (fn->getDifferentiabilityKind ()) {
32513251 case DifferentiabilityKind::NonDifferentiable:
32523252 break ;
32533253 case DifferentiabilityKind::Forward:
@@ -4158,11 +4158,11 @@ void ASTMangler::appendAccessorEntity(StringRef accessorKindCode,
41584158
41594159 BaseEntitySignature base (decl);
41604160 appendContextOf (decl, base);
4161- if (auto *varDecl = dyn_cast <VarDecl>(decl)) {
4161+ if (isa <VarDecl>(decl)) {
41624162 appendDeclName (decl);
41634163 appendDeclType (decl, base);
41644164 appendOperator (" v" , accessorKindCode);
4165- } else if (auto *subscriptDecl = dyn_cast <SubscriptDecl>(decl)) {
4165+ } else if (isa <SubscriptDecl>(decl)) {
41664166 appendDeclType (decl, base);
41674167
41684168 StringRef privateDiscriminator = getPrivateDiscriminatorIfNecessary (decl);
@@ -4957,7 +4957,7 @@ getPrecheckedLocalContextDiscriminator(const Decl *decl, Identifier name) {
49574957std::string ASTMangler::mangleAttachedMacroExpansion (
49584958 const Decl *decl, CustomAttr *attr, MacroRole role) {
49594959 if (auto abiDecl = getABIDecl (decl)) {
4960- return mangleAttachedMacroExpansion (decl , attr, role);
4960+ return mangleAttachedMacroExpansion (abiDecl , attr, role);
49614961 }
49624962
49634963 // FIXME(kavon): using the decl causes a cycle. Is a null base fine?
0 commit comments