Skip to content

Commit f9a26d4

Browse files
committed
Make MoveOnlyWrapperToCopyableBoxInst a ConversionInstruction.
This appears to be an obvious oversight.
1 parent 0b81392 commit f9a26d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

SwiftCompilerSources/Sources/SIL/ForwardingInstruction.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ extension MoveOnlyWrapperToCopyableValueInst : ConversionInstruction {
265265
public var canForwardOwnedValues: Bool { true }
266266
}
267267

268+
extension MoveOnlyWrapperToCopyableBoxInst : ConversionInstruction {
269+
public var preservesRepresentation: Bool { true }
270+
public var canForwardGuaranteedValues: Bool { true }
271+
public var canForwardOwnedValues: Bool { true }
272+
}
273+
268274
extension UpcastInst : ConversionInstruction {
269275
public var preservesRepresentation: Bool { true }
270276
public var canForwardGuaranteedValues: Bool { true }
@@ -386,12 +392,6 @@ extension MarkUnresolvedReferenceBindingInst : ForwardingInstruction {
386392
public var canForwardOwnedValues: Bool { true }
387393
}
388394

389-
extension MoveOnlyWrapperToCopyableBoxInst : ForwardingInstruction {
390-
public var preservesRepresentation: Bool { true }
391-
public var canForwardGuaranteedValues: Bool { true }
392-
public var canForwardOwnedValues: Bool { true }
393-
}
394-
395395
extension LinearFunctionExtractInst: ForwardingInstruction {
396396
public var preservesRepresentation: Bool { true }
397397
public var canForwardGuaranteedValues: Bool { true }

0 commit comments

Comments
 (0)