Skip to content

Commit 4437bf4

Browse files
committed
Add several instructions to ConversionOperation.
MarkUninitializedInst MarkUnresolvedNonCopyableValueInst CopyableToMoveOnlyWrapperValueInst MoveOnlyWrapperToCopyableValueInst MoveOnlyWrapperToCopyableBoxInst
1 parent f9a26d4 commit 4437bf4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/SIL/InstWrappers.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ struct ConversionOperation {
111111

112112
static bool isa(SILInstruction *inst) {
113113
switch (inst->getKind()) {
114+
case SILInstructionKind::MarkUnresolvedNonCopyableValueInst:
115+
case SILInstructionKind::MarkUninitializedInst:
114116
case SILInstructionKind::ConvertFunctionInst:
115117
case SILInstructionKind::UpcastInst:
116118
case SILInstructionKind::AddressToPointerInst:
@@ -135,6 +137,9 @@ struct ConversionOperation {
135137
case SILInstructionKind::RefToUnownedInst:
136138
case SILInstructionKind::UnmanagedToRefInst:
137139
case SILInstructionKind::UnownedToRefInst:
140+
case SILInstructionKind::CopyableToMoveOnlyWrapperValueInst:
141+
case SILInstructionKind::MoveOnlyWrapperToCopyableValueInst:
142+
case SILInstructionKind::MoveOnlyWrapperToCopyableBoxInst:
138143
return true;
139144
default:
140145
return false;

0 commit comments

Comments
 (0)