Skip to content

Commit e788091

Browse files
committed
Add Swift BeginApplyInst::yieldedValues
1 parent 0ada2e2 commit e788091

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,8 +1000,12 @@ final public class DestructureTupleInst : MultipleValueInstruction, UnaryInstruc
10001000

10011001
final public class BeginApplyInst : MultipleValueInstruction, FullApplySite {
10021002
public var numArguments: Int { bridged.BeginApplyInst_numArguments() }
1003-
1003+
10041004
public var singleDirectResult: Value? { nil }
1005+
1006+
public var yieldedValues: Results {
1007+
Results(inst: self, numResults: resultCount - 1)
1008+
}
10051009
}
10061010

10071011
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)