@@ -1564,10 +1564,11 @@ BridgedCanType BridgedInstruction::UnconditionalCheckedCast_getTargetFormalType(
15641564 return {getAs<swift::UnconditionalCheckedCastInst>()->getTargetFormalType ()};
15651565}
15661566
1567- BridgedInstruction::CastingIsolatedConformances
1568- BridgedInstruction::UnconditionalCheckedCast_getIsolatedConformances () const {
1569- return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1570- getAs<swift::UnconditionalCheckedCastInst>()->getIsolatedConformances ());
1567+ BridgedInstruction::CheckedCastInstOptions
1568+ BridgedInstruction::UnconditionalCheckedCast_getCheckedCastOptions () const {
1569+ return BridgedInstruction::CheckedCastInstOptions{
1570+ getAs<swift::UnconditionalCheckedCastInst>()->getCheckedCastOptions ()
1571+ .getStorage ()};
15711572}
15721573
15731574BridgedCanType BridgedInstruction::UnconditionalCheckedCastAddr_getSourceFormalType () const {
@@ -1578,10 +1579,11 @@ BridgedCanType BridgedInstruction::UnconditionalCheckedCastAddr_getTargetFormalT
15781579 return {getAs<swift::UnconditionalCheckedCastAddrInst>()->getTargetFormalType ()};
15791580}
15801581
1581- BridgedInstruction::CastingIsolatedConformances
1582- BridgedInstruction::UnconditionalCheckedCastAddr_getIsolatedConformances () const {
1583- return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1584- getAs<swift::UnconditionalCheckedCastAddrInst>()->getIsolatedConformances ());
1582+ BridgedInstruction::CheckedCastInstOptions
1583+ BridgedInstruction::UnconditionalCheckedCastAddr_getCheckedCastOptions () const {
1584+ return BridgedInstruction::CheckedCastInstOptions{
1585+ getAs<swift::UnconditionalCheckedCastAddrInst>()->getCheckedCastOptions ()
1586+ .getStorage ()};
15851587}
15861588
15871589BridgedBasicBlock BridgedInstruction::CheckedCastBranch_getSuccessBlock () const {
@@ -1592,10 +1594,11 @@ BridgedBasicBlock BridgedInstruction::CheckedCastBranch_getFailureBlock() const
15921594 return {getAs<swift::CheckedCastBranchInst>()->getFailureBB ()};
15931595}
15941596
1595- BridgedInstruction::CastingIsolatedConformances
1596- BridgedInstruction::CheckedCastBranch_getIsolatedConformances () const {
1597- return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1598- getAs<swift::CheckedCastBranchInst>()->getIsolatedConformances ());
1597+ BridgedInstruction::CheckedCastInstOptions
1598+ BridgedInstruction::CheckedCastBranch_getCheckedCastOptions () const {
1599+ return BridgedInstruction::CheckedCastInstOptions{
1600+ getAs<swift::CheckedCastBranchInst>()->getCheckedCastOptions ()
1601+ .getStorage ()};
15991602}
16001603
16011604BridgedCanType BridgedInstruction::CheckedCastAddrBranch_getSourceFormalType () const {
@@ -1626,10 +1629,11 @@ BridgedInstruction::CastConsumptionKind BridgedInstruction::CheckedCastAddrBranc
16261629 getAs<swift::CheckedCastAddrBranchInst>()->getConsumptionKind ());
16271630}
16281631
1629- BridgedInstruction::CastingIsolatedConformances
1630- BridgedInstruction::CheckedCastAddrBranch_getIsolatedConformances () const {
1631- return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1632- getAs<swift::CheckedCastAddrBranchInst>()->getIsolatedConformances ());
1632+ BridgedInstruction::CheckedCastInstOptions
1633+ BridgedInstruction::CheckedCastAddrBranch_getCheckedCastOptions () const {
1634+ return BridgedInstruction::CheckedCastInstOptions{
1635+ getAs<swift::CheckedCastAddrBranchInst>()->getCheckedCastOptions ()
1636+ .getStorage ()};
16331637}
16341638
16351639BridgedSubstitutionMap BridgedInstruction::ApplySite_getSubstitutionMap () const {
@@ -2190,27 +2194,27 @@ BridgedInstruction BridgedBuilder::createUpcast(BridgedValue op, BridgedType typ
21902194BridgedInstruction BridgedBuilder::createCheckedCastAddrBranch (
21912195 BridgedValue source, BridgedCanType sourceFormalType,
21922196 BridgedValue destination, BridgedCanType targetFormalType,
2193- BridgedInstruction::CastingIsolatedConformances isolatedConformances ,
2197+ BridgedInstruction::CheckedCastInstOptions options ,
21942198 BridgedInstruction::CastConsumptionKind consumptionKind,
21952199 BridgedBasicBlock successBlock, BridgedBasicBlock failureBlock) const
21962200{
21972201 return {unbridged ().createCheckedCastAddrBranch (
21982202 regularLoc (),
2199- ( swift::CastingIsolatedConformances)isolatedConformances ,
2203+ swift::CheckedCastInstOptions (options. storage ) ,
22002204 (swift::CastConsumptionKind)consumptionKind,
22012205 source.getSILValue (), sourceFormalType.unbridged (),
22022206 destination.getSILValue (), targetFormalType.unbridged (),
22032207 successBlock.unbridged (), failureBlock.unbridged ())};
22042208}
22052209
22062210BridgedInstruction BridgedBuilder::createUnconditionalCheckedCastAddr (
2207- BridgedInstruction::CastingIsolatedConformances isolatedConformances ,
2211+ BridgedInstruction::CheckedCastInstOptions options ,
22082212 BridgedValue source, BridgedCanType sourceFormalType,
22092213 BridgedValue destination, BridgedCanType targetFormalType) const
22102214{
22112215 return {unbridged ().createUnconditionalCheckedCastAddr (
22122216 regularLoc (),
2213- ( swift::CastingIsolatedConformances)isolatedConformances ,
2217+ swift::CheckedCastInstOptions (options. storage ) ,
22142218 source.getSILValue (), sourceFormalType.unbridged (),
22152219 destination.getSILValue (), targetFormalType.unbridged ())};
22162220}
0 commit comments