@@ -3056,7 +3056,7 @@ void ASTMangler::appendAnyGenericType(const GenericTypeDecl *decl,
30563056 appendIdentifier (interface->getObjCRuntimeNameAsString ());
30573057 } else if (UseObjCRuntimeNames && protocol) {
30583058 appendIdentifier (protocol->getObjCRuntimeNameAsString ());
3059- } else if (auto ctsd = dyn_cast <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
3059+ } else if (isa <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
30603060 // If this is a `ClassTemplateSpecializationDecl`, it was
30613061 // imported as a Swift decl with `__CxxTemplateInst...` name.
30623062 // `ClassTemplateSpecializationDecl`'s name does not include information about
@@ -3253,7 +3253,7 @@ void ASTMangler::appendFunctionSignature(AnyFunctionType *fn,
32533253 appendOperator (" YK" );
32543254 }
32553255 }
3256- switch (auto diffKind = fn->getDifferentiabilityKind ()) {
3256+ switch (fn->getDifferentiabilityKind ()) {
32573257 case DifferentiabilityKind::NonDifferentiable:
32583258 break ;
32593259 case DifferentiabilityKind::Forward:
@@ -4164,11 +4164,11 @@ void ASTMangler::appendAccessorEntity(StringRef accessorKindCode,
41644164
41654165 BaseEntitySignature base (decl);
41664166 appendContextOf (decl, base);
4167- if (auto *varDecl = dyn_cast <VarDecl>(decl)) {
4167+ if (isa <VarDecl>(decl)) {
41684168 appendDeclName (decl);
41694169 appendDeclType (decl, base);
41704170 appendOperator (" v" , accessorKindCode);
4171- } else if (auto *subscriptDecl = dyn_cast <SubscriptDecl>(decl)) {
4171+ } else if (isa <SubscriptDecl>(decl)) {
41724172 appendDeclType (decl, base);
41734173
41744174 StringRef privateDiscriminator = getPrivateDiscriminatorIfNecessary (decl);
@@ -4963,7 +4963,7 @@ getPrecheckedLocalContextDiscriminator(const Decl *decl, Identifier name) {
49634963std::string ASTMangler::mangleAttachedMacroExpansion (
49644964 const Decl *decl, CustomAttr *attr, MacroRole role) {
49654965 if (auto abiDecl = getABIDecl (decl)) {
4966- return mangleAttachedMacroExpansion (decl , attr, role);
4966+ return mangleAttachedMacroExpansion (abiDecl , attr, role);
49674967 }
49684968
49694969 // FIXME(kavon): using the decl causes a cycle. Is a null base fine?
0 commit comments