Skip to content

Commit 118db28

Browse files
committed
Fix SIL verifier's identification of @error_indirect operands
1 parent 53c8e84 commit 118db28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/ApplySite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ class FullApplySite : public ApplySite {
746746
bool isIndirectErrorResultOperand(const Operand &op) const {
747747
return isArgumentOperand(op)
748748
&& (getCalleeArgIndex(op) >= getNumIndirectSILResults())
749-
&& (getCalleeArgIndex(op) < getNumIndirectSILErrorResults());
749+
&& (getCalleeArgIndex(op) < getNumIndirectSILResults() + getNumIndirectSILErrorResults());
750750
}
751751

752752
static FullApplySite getFromOpaqueValue(void *p) { return FullApplySite(p); }

0 commit comments

Comments
 (0)