Skip to content

Commit 9ddb60b

Browse files
committed
Restrict ScopedInstruction to SingleValueInstruction
1 parent 6117d4f commit 9ddb60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ final public class BeginAccessInst : SingleValueInstruction, UnaryInstruction {
865865
// An instruction that is always paired with a scope ending instruction
866866
// such as `begin_access` (ending with `end_access`) and `alloc_stack`
867867
// (ending with `dealloc_stack`).
868-
public protocol ScopedInstruction {
868+
public protocol ScopedInstruction: SingleValueInstruction {
869869
// The type of the ending instructions (while `IteratorProtocol` would be
870870
// ideal, for performance reasons we allow the user to specify any type as return)
871871
associatedtype EndInstructions

0 commit comments

Comments
 (0)