Skip to content

Commit 329dd2c

Browse files
committed
[InstUtils] Look through move as ownership inst.
Add move_value to the list of ownership instructions through which lookThroughOwnershipInsts looks.
1 parent 6bb1826 commit 329dd2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/Utils/InstructionUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ SILValue swift::lookThroughOwnershipInsts(SILValue v) {
3131
switch (v->getKind()) {
3232
default:
3333
return v;
34+
case ValueKind::MoveValueInst:
3435
case ValueKind::CopyValueInst:
3536
case ValueKind::BeginBorrowInst:
3637
v = cast<SingleValueInstruction>(v)->getOperand(0);

0 commit comments

Comments
 (0)