@@ -1564,10 +1564,11 @@ BridgedCanType BridgedInstruction::UnconditionalCheckedCast_getTargetFormalType(
1564
1564
return {getAs<swift::UnconditionalCheckedCastInst>()->getTargetFormalType ()};
1565
1565
}
1566
1566
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 ()};
1571
1572
}
1572
1573
1573
1574
BridgedCanType BridgedInstruction::UnconditionalCheckedCastAddr_getSourceFormalType () const {
@@ -1578,10 +1579,11 @@ BridgedCanType BridgedInstruction::UnconditionalCheckedCastAddr_getTargetFormalT
1578
1579
return {getAs<swift::UnconditionalCheckedCastAddrInst>()->getTargetFormalType ()};
1579
1580
}
1580
1581
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 ()};
1585
1587
}
1586
1588
1587
1589
BridgedBasicBlock BridgedInstruction::CheckedCastBranch_getSuccessBlock () const {
@@ -1592,10 +1594,11 @@ BridgedBasicBlock BridgedInstruction::CheckedCastBranch_getFailureBlock() const
1592
1594
return {getAs<swift::CheckedCastBranchInst>()->getFailureBB ()};
1593
1595
}
1594
1596
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 ()};
1599
1602
}
1600
1603
1601
1604
BridgedCanType BridgedInstruction::CheckedCastAddrBranch_getSourceFormalType () const {
@@ -1626,10 +1629,11 @@ BridgedInstruction::CastConsumptionKind BridgedInstruction::CheckedCastAddrBranc
1626
1629
getAs<swift::CheckedCastAddrBranchInst>()->getConsumptionKind ());
1627
1630
}
1628
1631
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 ()};
1633
1637
}
1634
1638
1635
1639
BridgedSubstitutionMap BridgedInstruction::ApplySite_getSubstitutionMap () const {
@@ -2190,27 +2194,27 @@ BridgedInstruction BridgedBuilder::createUpcast(BridgedValue op, BridgedType typ
2190
2194
BridgedInstruction BridgedBuilder::createCheckedCastAddrBranch (
2191
2195
BridgedValue source, BridgedCanType sourceFormalType,
2192
2196
BridgedValue destination, BridgedCanType targetFormalType,
2193
- BridgedInstruction::CastingIsolatedConformances isolatedConformances ,
2197
+ BridgedInstruction::CheckedCastInstOptions options ,
2194
2198
BridgedInstruction::CastConsumptionKind consumptionKind,
2195
2199
BridgedBasicBlock successBlock, BridgedBasicBlock failureBlock) const
2196
2200
{
2197
2201
return {unbridged ().createCheckedCastAddrBranch (
2198
2202
regularLoc (),
2199
- ( swift::CastingIsolatedConformances)isolatedConformances ,
2203
+ swift::CheckedCastInstOptions (options. storage ) ,
2200
2204
(swift::CastConsumptionKind)consumptionKind,
2201
2205
source.getSILValue (), sourceFormalType.unbridged (),
2202
2206
destination.getSILValue (), targetFormalType.unbridged (),
2203
2207
successBlock.unbridged (), failureBlock.unbridged ())};
2204
2208
}
2205
2209
2206
2210
BridgedInstruction BridgedBuilder::createUnconditionalCheckedCastAddr (
2207
- BridgedInstruction::CastingIsolatedConformances isolatedConformances ,
2211
+ BridgedInstruction::CheckedCastInstOptions options ,
2208
2212
BridgedValue source, BridgedCanType sourceFormalType,
2209
2213
BridgedValue destination, BridgedCanType targetFormalType) const
2210
2214
{
2211
2215
return {unbridged ().createUnconditionalCheckedCastAddr (
2212
2216
regularLoc (),
2213
- ( swift::CastingIsolatedConformances)isolatedConformances ,
2217
+ swift::CheckedCastInstOptions (options. storage ) ,
2214
2218
source.getSILValue (), sourceFormalType.unbridged (),
2215
2219
destination.getSILValue (), targetFormalType.unbridged ())};
2216
2220
}
0 commit comments