@@ -3056,7 +3056,7 @@ void ASTMangler::appendAnyGenericType(const GenericTypeDecl *decl,
3056
3056
appendIdentifier (interface->getObjCRuntimeNameAsString ());
3057
3057
} else if (UseObjCRuntimeNames && protocol) {
3058
3058
appendIdentifier (protocol->getObjCRuntimeNameAsString ());
3059
- } else if (auto ctsd = dyn_cast <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
3059
+ } else if (isa <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
3060
3060
// If this is a `ClassTemplateSpecializationDecl`, it was
3061
3061
// imported as a Swift decl with `__CxxTemplateInst...` name.
3062
3062
// `ClassTemplateSpecializationDecl`'s name does not include information about
@@ -3253,7 +3253,7 @@ void ASTMangler::appendFunctionSignature(AnyFunctionType *fn,
3253
3253
appendOperator (" YK" );
3254
3254
}
3255
3255
}
3256
- switch (auto diffKind = fn->getDifferentiabilityKind ()) {
3256
+ switch (fn->getDifferentiabilityKind ()) {
3257
3257
case DifferentiabilityKind::NonDifferentiable:
3258
3258
break ;
3259
3259
case DifferentiabilityKind::Forward:
@@ -4164,11 +4164,11 @@ void ASTMangler::appendAccessorEntity(StringRef accessorKindCode,
4164
4164
4165
4165
BaseEntitySignature base (decl);
4166
4166
appendContextOf (decl, base);
4167
- if (auto *varDecl = dyn_cast <VarDecl>(decl)) {
4167
+ if (isa <VarDecl>(decl)) {
4168
4168
appendDeclName (decl);
4169
4169
appendDeclType (decl, base);
4170
4170
appendOperator (" v" , accessorKindCode);
4171
- } else if (auto *subscriptDecl = dyn_cast <SubscriptDecl>(decl)) {
4171
+ } else if (isa <SubscriptDecl>(decl)) {
4172
4172
appendDeclType (decl, base);
4173
4173
4174
4174
StringRef privateDiscriminator = getPrivateDiscriminatorIfNecessary (decl);
@@ -4963,7 +4963,7 @@ getPrecheckedLocalContextDiscriminator(const Decl *decl, Identifier name) {
4963
4963
std::string ASTMangler::mangleAttachedMacroExpansion (
4964
4964
const Decl *decl, CustomAttr *attr, MacroRole role) {
4965
4965
if (auto abiDecl = getABIDecl (decl)) {
4966
- return mangleAttachedMacroExpansion (decl , attr, role);
4966
+ return mangleAttachedMacroExpansion (abiDecl , attr, role);
4967
4967
}
4968
4968
4969
4969
// FIXME(kavon): using the decl causes a cycle. Is a null base fine?
0 commit comments