mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[InstUtils] Look through move as ownership inst.
Add move_value to the list of ownership instructions through which lookThroughOwnershipInsts looks.
This commit is contained in:
@@ -31,6 +31,7 @@ SILValue swift::lookThroughOwnershipInsts(SILValue v) {
|
||||
switch (v->getKind()) {
|
||||
default:
|
||||
return v;
|
||||
case ValueKind::MoveValueInst:
|
||||
case ValueKind::CopyValueInst:
|
||||
case ValueKind::BeginBorrowInst:
|
||||
v = cast<SingleValueInstruction>(v)->getOperand(0);
|
||||
|
||||
Reference in New Issue
Block a user