Skip to content

Commit 9b18557

Browse files
committed
[Projection] Look through move_value insts.
1 parent 794e336 commit 9b18557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Utils/Projection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Optional<ProjectionPath> ProjectionPath::getProjectionPath(SILValue Start,
387387
// TODO: migrate users to getProjectionPath to the AccessPath utility to
388388
// avoid this hack.
389389
if (!isa<EndCOWMutationInst>(Iter) && !isa<BeginAccessInst>(Iter) &&
390-
!isa<BeginBorrowInst>(Iter)) {
390+
!isa<BeginBorrowInst>(Iter) && !isa<MoveValueInst>(Iter)) {
391391
Projection AP(Iter);
392392
if (!AP.isValid())
393393
break;

0 commit comments

Comments
 (0)