mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Fix bridged begin_apply results.
The `yield_once_2` adds an extra result at the end, the deallocation. Fix the indexing for the token and yielded results.
This commit is contained in:
@@ -779,6 +779,7 @@ struct BridgedInstruction {
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedSILTypeArray AllocRefInstBase_getTailAllocatedTypes() const;
|
||||
BRIDGED_INLINE bool AllocRefDynamicInst_isDynamicTypeDeinitAndSizeKnownEquivalentToBaseType() const;
|
||||
BRIDGED_INLINE SwiftInt BeginApplyInst_numArguments() const;
|
||||
BRIDGED_INLINE bool BeginApplyInst_isCalleeAllocated() const;
|
||||
BRIDGED_INLINE SwiftInt TryApplyInst_numArguments() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedBasicBlock BranchInst_getTargetBlock() const;
|
||||
BRIDGED_INLINE SwiftInt SwitchEnumInst_getNumCases() const;
|
||||
|
||||
@@ -1333,6 +1333,10 @@ SwiftInt BridgedInstruction::BeginApplyInst_numArguments() const {
|
||||
return getAs<swift::BeginApplyInst>()->getNumArguments();
|
||||
}
|
||||
|
||||
bool BridgedInstruction::BeginApplyInst_isCalleeAllocated() const {
|
||||
return getAs<swift::BeginApplyInst>()->isCalleeAllocated();
|
||||
}
|
||||
|
||||
SwiftInt BridgedInstruction::TryApplyInst_numArguments() const {
|
||||
return getAs<swift::TryApplyInst>()->getNumArguments();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user