@@ -3050,7 +3050,7 @@ void ASTMangler::appendAnyGenericType(const GenericTypeDecl *decl,
3050
3050
appendIdentifier (interface->getObjCRuntimeNameAsString ());
3051
3051
} else if (UseObjCRuntimeNames && protocol) {
3052
3052
appendIdentifier (protocol->getObjCRuntimeNameAsString ());
3053
- } else if (auto ctsd = dyn_cast <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
3053
+ } else if (isa <clang::ClassTemplateSpecializationDecl>(namedDecl)) {
3054
3054
// If this is a `ClassTemplateSpecializationDecl`, it was
3055
3055
// imported as a Swift decl with `__CxxTemplateInst...` name.
3056
3056
// `ClassTemplateSpecializationDecl`'s name does not include information about
@@ -3247,7 +3247,7 @@ void ASTMangler::appendFunctionSignature(AnyFunctionType *fn,
3247
3247
appendOperator (" YK" );
3248
3248
}
3249
3249
}
3250
- switch (auto diffKind = fn->getDifferentiabilityKind ()) {
3250
+ switch (fn->getDifferentiabilityKind ()) {
3251
3251
case DifferentiabilityKind::NonDifferentiable:
3252
3252
break ;
3253
3253
case DifferentiabilityKind::Forward:
@@ -4158,11 +4158,11 @@ void ASTMangler::appendAccessorEntity(StringRef accessorKindCode,
4158
4158
4159
4159
BaseEntitySignature base (decl);
4160
4160
appendContextOf (decl, base);
4161
- if (auto *varDecl = dyn_cast <VarDecl>(decl)) {
4161
+ if (isa <VarDecl>(decl)) {
4162
4162
appendDeclName (decl);
4163
4163
appendDeclType (decl, base);
4164
4164
appendOperator (" v" , accessorKindCode);
4165
- } else if (auto *subscriptDecl = dyn_cast <SubscriptDecl>(decl)) {
4165
+ } else if (isa <SubscriptDecl>(decl)) {
4166
4166
appendDeclType (decl, base);
4167
4167
4168
4168
StringRef privateDiscriminator = getPrivateDiscriminatorIfNecessary (decl);
@@ -4957,7 +4957,7 @@ getPrecheckedLocalContextDiscriminator(const Decl *decl, Identifier name) {
4957
4957
std::string ASTMangler::mangleAttachedMacroExpansion (
4958
4958
const Decl *decl, CustomAttr *attr, MacroRole role) {
4959
4959
if (auto abiDecl = getABIDecl (decl)) {
4960
- return mangleAttachedMacroExpansion (decl , attr, role);
4960
+ return mangleAttachedMacroExpansion (abiDecl , attr, role);
4961
4961
}
4962
4962
4963
4963
// FIXME(kavon): using the decl causes a cycle. Is a null base fine?
0 commit comments