Skip to content

Commit 974d179

Browse files
committed
[MemAccessUtils] This instruction changes the type
moveonlywrapper_to_copyable_box changes the type so it's a type cast not an identity cast.
1 parent f3c2851 commit 974d179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/MemAccessUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,7 @@ inline bool isAccessStorageTypeCast(SingleValueInstruction *svi) {
16061606
// Simply pass-thru the incoming address. But change its type!
16071607
case SILInstructionKind::MoveOnlyWrapperToCopyableAddrInst:
16081608
case SILInstructionKind::CopyableToMoveOnlyWrapperAddrInst:
1609+
case SILInstructionKind::MoveOnlyWrapperToCopyableBoxInst:
16091610
// Simply pass-thru the incoming address. But change its type!
16101611
case SILInstructionKind::UncheckedAddrCastInst:
16111612
// Casting to RawPointer does not affect the AccessPath. When converting
@@ -1652,7 +1653,6 @@ inline bool isAccessStorageIdentityCast(SingleValueInstruction *svi) {
16521653
case SILInstructionKind::MarkDependenceInst:
16531654
case SILInstructionKind::CopyValueInst:
16541655
case SILInstructionKind::BeginBorrowInst:
1655-
case SILInstructionKind::MoveOnlyWrapperToCopyableBoxInst:
16561656
return true;
16571657
}
16581658
}

0 commit comments

Comments
 (0)