File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -710,7 +710,10 @@ class alignas(1 << TypeAlignInBits) TypeBase {
710
710
// / class-bounded existential type whose required conformances are
711
711
// / all @objc. Such types are compatible with ObjC.
712
712
bool isObjCExistentialType ();
713
-
713
+
714
+ // // Is this an ObjC generic class.
715
+ bool isTypeErasedGenericClassType ();
716
+
714
717
// / Determines whether this type is an existential type with a class protocol
715
718
// / bound.
716
719
bool isClassExistentialType ();
Original file line number Diff line number Diff line change @@ -337,6 +337,10 @@ bool TypeBase::isObjCExistentialType() {
337
337
return getCanonicalType ().isObjCExistentialType ();
338
338
}
339
339
340
+ bool TypeBase::isTypeErasedGenericClassType () {
341
+ return getCanonicalType ().isTypeErasedGenericClassType ();
342
+ }
343
+
340
344
bool CanType::isObjCExistentialTypeImpl (CanType type) {
341
345
if (!type.isExistentialType ())
342
346
return false ;
@@ -4300,7 +4304,7 @@ case TypeKind::Id:
4300
4304
bool changed = false ;
4301
4305
auto hasTypeErasedGenericClassType = [](Type ty) -> bool {
4302
4306
return ty.findIf ([](Type subType) -> bool {
4303
- if (subType->getCanonicalType (). isTypeErasedGenericClassType ())
4307
+ if (subType->isTypeErasedGenericClassType ())
4304
4308
return true ;
4305
4309
else
4306
4310
return false ;
You can’t perform that action at this time.
0 commit comments