We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8decfa4 commit 406afc7Copy full SHA for 406afc7
SwiftCompilerSources/Sources/Optimizer/Utilities/OwnershipLiveness.swift
@@ -608,9 +608,9 @@ extension InteriorUseWalker: OwnershipUseVisitor {
608
if handleInner(borrowed: beginBorrow.value) == .abortWalk {
609
return .abortWalk
610
}
611
- if visitInnerUses {
612
- return visitAllUses(of: beginBorrow.value)
613
- }
+ }
+ if visitInnerUses, let innerValue = borrowInst.innerValue {
+ return visitAllUses(of: innerValue)
614
615
return visitInnerBorrowUses(of: borrowInst, operand: operand)
616
0 commit comments