mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Projection] Look through move_value insts.
This commit is contained in:
@@ -387,7 +387,7 @@ Optional<ProjectionPath> ProjectionPath::getProjectionPath(SILValue Start,
|
||||
// TODO: migrate users to getProjectionPath to the AccessPath utility to
|
||||
// avoid this hack.
|
||||
if (!isa<EndCOWMutationInst>(Iter) && !isa<BeginAccessInst>(Iter) &&
|
||||
!isa<BeginBorrowInst>(Iter)) {
|
||||
!isa<BeginBorrowInst>(Iter) && !isa<MoveValueInst>(Iter)) {
|
||||
Projection AP(Iter);
|
||||
if (!AP.isValid())
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user