We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@error_indirect
1 parent 53c8e84 commit 118db28Copy full SHA for 118db28
include/swift/SIL/ApplySite.h
@@ -746,7 +746,7 @@ class FullApplySite : public ApplySite {
746
bool isIndirectErrorResultOperand(const Operand &op) const {
747
return isArgumentOperand(op)
748
&& (getCalleeArgIndex(op) >= getNumIndirectSILResults())
749
- && (getCalleeArgIndex(op) < getNumIndirectSILErrorResults());
+ && (getCalleeArgIndex(op) < getNumIndirectSILResults() + getNumIndirectSILErrorResults());
750
}
751
752
static FullApplySite getFromOpaqueValue(void *p) { return FullApplySite(p); }
0 commit comments