Skip to content

Commit a332422

Browse files
committed
Inherit OwnershipForwardingSingleValueInst from MoveOnlyWrapperToCopyableBoxInst
1 parent 45b7195 commit a332422

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8504,7 +8504,7 @@ class MoveOnlyWrapperToCopyableValueInst
85048504
class MoveOnlyWrapperToCopyableBoxInst
85058505
: public UnaryInstructionBase<
85068506
SILInstructionKind::MoveOnlyWrapperToCopyableBoxInst,
8507-
FirstArgOwnershipForwardingSingleValueInst> {
8507+
OwnershipForwardingSingleValueInstruction> {
85088508
friend class SILBuilder;
85098509

85108510
MoveOnlyWrapperToCopyableBoxInst(SILDebugLocation DebugLoc, SILValue operand,
@@ -10833,8 +10833,6 @@ inline ForwardingInstruction *ForwardingInstruction::get(SILInstruction *inst) {
1083310833
if (auto *result =
1083410834
dyn_cast<OwnershipForwardingMultipleValueInstruction>(inst))
1083510835
return result;
10836-
if (auto *result = dyn_cast<MoveOnlyWrapperToCopyableValueInst>(inst))
10837-
return result;
1083810836
if (auto *result = dyn_cast<CopyableToMoveOnlyWrapperValueInst>(inst))
1083910837
return result;
1084010838
return nullptr;

0 commit comments

Comments
 (0)