Skip to content

Commit f4e0eae

Browse files
committed
OperandOwnership Remove unnecessary special case for callee operand.
1 parent 07f5735 commit f4e0eae

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/SIL/IR/OperandOwnership.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,6 @@ OperandOwnershipClassifier::visitFullApply(FullApplySite apply) {
437437
? SILArgumentConvention(apply.getSubstCalleeType()->getCalleeConvention())
438438
: apply.getArgumentConvention(op);
439439

440-
// Allow passing callee operands with no ownership as guaranteed.
441-
// FIXME: why do we allow this?
442-
if (operandOwnership == OperandOwnership::ForwardingBorrow
443-
&& apply.isCalleeOperand(op)) {
444-
return OperandOwnership::InstantaneousUse;
445-
}
446440
return getFunctionArgOwnership(
447441
argConv,
448442
/*hasScopeInCaller*/ apply.beginsCoroutineEvaluation());

0 commit comments

Comments
 (0)