@@ -2465,7 +2465,7 @@ diagnoseTypeMemberOnInstanceLookup(Type baseObjTy,
2465
2465
Diag.emplace (diagnose (loc,
2466
2466
diag::assoc_type_outside_of_protocol,
2467
2467
ATD->getName ()));
2468
- } else if (auto CD = dyn_cast <ConstructorDecl>(member)) {
2468
+ } else if (isa <ConstructorDecl>(member)) {
2469
2469
Diag.emplace (diagnose (loc,
2470
2470
diag::construct_protocol_by_name,
2471
2471
metatypeTy->getInstanceType ()));
@@ -5508,13 +5508,13 @@ static bool isRawRepresentableMismatch(Type fromType, Type toType,
5508
5508
// First check if this is an attempt to convert from something to
5509
5509
// raw representable.
5510
5510
if (conformsToKnownProtocol (fromType, kind, CS)) {
5511
- if (auto rawType = isRawRepresentable (toType, kind, CS))
5511
+ if (isRawRepresentable (toType, kind, CS))
5512
5512
return true ;
5513
5513
}
5514
5514
5515
5515
// Otherwise, it might be an attempt to convert from raw representable
5516
5516
// to its raw value.
5517
- if (auto rawType = isRawRepresentable (fromType, kind, CS)) {
5517
+ if (isRawRepresentable (fromType, kind, CS)) {
5518
5518
if (conformsToKnownProtocol (toType, kind, CS))
5519
5519
return true ;
5520
5520
}
0 commit comments