@@ -802,7 +802,7 @@ SILCombiner::buildConcreteOpenedExistentialInfoFromSoleConformingType(
802802 // / and that the protocol type has a sole conformance, then we can propagate
803803 // / concrete type for it as well.
804804 ArchetypeType *archetypeTy;
805- if (SwiftArgType-> isOpenedExistential ( ) &&
805+ if (isa<OpenedArchetypeType>(SwiftArgType ) &&
806806 (archetypeTy = dyn_cast<ArchetypeType>(SwiftArgType)) &&
807807 (archetypeTy->getConformsTo ().size () == 1 )) {
808808 PD = archetypeTy->getConformsTo ()[0 ];
@@ -1116,7 +1116,7 @@ SILValue SILCombiner::canCastArg(FullApplySite Apply,
11161116 const OpenedArchetypeInfo &OAI,
11171117 const ConcreteExistentialInfo &CEI,
11181118 unsigned ArgIdx) {
1119- if (!CEI.ConcreteValue || CEI.ConcreteType -> isOpenedExistential ( ) ||
1119+ if (!CEI.ConcreteValue || isa<OpenedArchetypeType>( CEI.ConcreteType ) ||
11201120 !CEI.ConcreteValue ->getType ().isAddress ())
11211121 return SILValue ();
11221122
@@ -1378,7 +1378,7 @@ SILCombiner::propagateConcreteTypeOfInitExistential(FullApplySite Apply,
13781378
13791379 // If the lookup type is not an opened existential type,
13801380 // it cannot be made more concrete.
1381- if (!WMI->getLookupType ()-> isOpenedExistential ( ))
1381+ if (!isa<OpenedArchetypeType>( WMI->getLookupType ()))
13821382 return nullptr ;
13831383
13841384 // Try to derive the concrete type and the related conformance of self and
0 commit comments