[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:
Nate Chandler
2022-08-22 16:49:42 -07:00
parent 6bb18263d1
commit 329dd2c980

View File

@@ -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);