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 @@ -714,7 +714,10 @@ class alignas(1 << TypeAlignInBits) TypeBase {
714
714
// / class-bounded existential type whose required conformances are
715
715
// / all @objc. Such types are compatible with ObjC.
716
716
bool isObjCExistentialType ();
717
-
717
+
718
+ // // Is this an ObjC generic class.
719
+ bool isTypeErasedGenericClassType ();
720
+
718
721
// / Determines whether this type is an existential type with a class protocol
719
722
// / bound.
720
723
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 ;
@@ -4316,7 +4320,7 @@ case TypeKind::Id:
4316
4320
bool changed = false ;
4317
4321
auto hasTypeErasedGenericClassType = [](Type ty) -> bool {
4318
4322
return ty.findIf ([](Type subType) -> bool {
4319
- if (subType->getCanonicalType (). isTypeErasedGenericClassType ())
4323
+ if (subType->isTypeErasedGenericClassType ())
4320
4324
return true ;
4321
4325
else
4322
4326
return false ;
You can’t perform that action at this time.
0 commit comments