mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add variants of the checked-cast instructions that
put the result in a different place. WIP: no IRGen support yet. This will eventually be the required form when casting to an address-only type; the existing instructions will have only scalar outputs. Swift SVN r18780
This commit is contained in:
@@ -99,6 +99,7 @@ static bool isTransitiveEscapeInst(SILInstruction *Inst) {
|
||||
case ValueKind::ValueMetatypeInst:
|
||||
case ValueKind::BranchInst:
|
||||
case ValueKind::CheckedCastBranchInst:
|
||||
case ValueKind::CheckedCastAddrBranchInst:
|
||||
case ValueKind::ClassMethodInst:
|
||||
case ValueKind::CondBranchInst:
|
||||
case ValueKind::ConvertFunctionInst:
|
||||
@@ -142,6 +143,7 @@ static bool isTransitiveEscapeInst(SILInstruction *Inst) {
|
||||
case ValueKind::TupleExtractInst:
|
||||
case ValueKind::TupleInst:
|
||||
case ValueKind::UnconditionalCheckedCastInst:
|
||||
case ValueKind::UnconditionalCheckedCastAddrInst:
|
||||
case ValueKind::UnmanagedToRefInst:
|
||||
case ValueKind::UnownedToRefInst:
|
||||
case ValueKind::UpcastExistentialRefInst:
|
||||
|
||||
Reference in New Issue
Block a user