Skip to content

Commit 1e9c4d1

Browse files
committed
Update LoadCopyToLoadBorrow for MemAccessUtils API.
1 parent cc0aa2f commit 1e9c4d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/SILOptimizer/SemanticARC/LoadCopyToLoadBorrowOpt.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,13 @@ class StorageGuaranteesLoadVisitor
266266
return next(parentAddr->get());
267267
}
268268

269-
void visitPathComponent(SingleValueInstruction *projectedAddr,
270-
Operand *parentAddr) {
269+
void visitStorageCast(SingleValueInstruction *projectedAddr,
270+
Operand *parentAddr) {
271+
return next(parentAddr->get());
272+
}
273+
274+
void visitAccessProjection(SingleValueInstruction *projectedAddr,
275+
Operand *parentAddr) {
271276
return next(parentAddr->get());
272277
}
273278

0 commit comments

Comments
 (0)