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.
1 parent 9f792bd commit e9caee9Copy full SHA for e9caee9
include/swift/SIL/ApplySite.h
@@ -297,6 +297,11 @@ class ApplySite {
297
getArgumentOperands()[i].set(V);
298
}
299
300
+ void setCallee(SILValue V) const {
301
+ unsigned calleeIndex = getCalleeOperand()->getOperandNumber();
302
+ getInstruction()->getAllOperands()[calleeIndex].set(V);
303
+ }
304
+
305
/// Return the operand index of the first applied argument.
306
unsigned getOperandIndexOfFirstArgument() const {
307
FOREACH_IMPL_RETURN(getArgumentOperandNumber());
0 commit comments