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 07f5735 commit f4e0eaeCopy full SHA for f4e0eae
lib/SIL/IR/OperandOwnership.cpp
@@ -437,12 +437,6 @@ OperandOwnershipClassifier::visitFullApply(FullApplySite apply) {
437
? SILArgumentConvention(apply.getSubstCalleeType()->getCalleeConvention())
438
: apply.getArgumentConvention(op);
439
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
- }
446
return getFunctionArgOwnership(
447
argConv,
448
/*hasScopeInCaller*/ apply.beginsCoroutineEvaluation());
0 commit comments