File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1386,13 +1386,6 @@ ValueOwnershipKind ForwardingOperand::getForwardingOwnershipKind() const {
1386
1386
return ofti->getForwardingOwnershipKind ();
1387
1387
}
1388
1388
1389
- if (auto *move = dyn_cast<MoveOnlyWrapperToCopyableValueInst>(user)) {
1390
- return move->getForwardingOwnershipKind ();
1391
- }
1392
-
1393
- if (auto *move = dyn_cast<MoveOnlyWrapperToCopyableBoxInst>(user))
1394
- return move->getForwardingOwnershipKind ();
1395
-
1396
1389
llvm_unreachable (" Unhandled forwarding inst?!" );
1397
1390
}
1398
1391
@@ -1727,9 +1720,7 @@ bool swift::visitForwardedGuaranteedOperands(
1727
1720
if (isa<FirstArgOwnershipForwardingSingleValueInst>(inst) ||
1728
1721
isa<OwnershipForwardingConversionInst>(inst) ||
1729
1722
isa<OwnershipForwardingSelectEnumInstBase>(inst) ||
1730
- isa<OwnershipForwardingMultipleValueInstruction>(inst) ||
1731
- isa<MoveOnlyWrapperToCopyableValueInst>(inst) ||
1732
- isa<CopyableToMoveOnlyWrapperValueInst>(inst)) {
1723
+ isa<OwnershipForwardingMultipleValueInstruction>(inst)) {
1733
1724
assert (!isa<SingleValueInstruction>(inst)
1734
1725
|| !BorrowedValue (cast<SingleValueInstruction>(inst))
1735
1726
&& " forwarded operand cannot begin a borrow scope" );
You can’t perform that action at this time.
0 commit comments