Skip to content

Commit 8decfa4

Browse files
committed
Add BorrowingInstruction.innerValue
1 parent 083ab98 commit 8decfa4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/BorrowUtils.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ enum BorrowingInstruction : CustomStringConvertible, Hashable {
204204
}
205205
}
206206

207+
var innerValue: Value? {
208+
if let dependent = dependentValue {
209+
return dependent
210+
}
211+
return scopedValue
212+
}
213+
207214
var dependentValue: Value? {
208215
switch self {
209216
case .borrowedFrom(let bfi):

0 commit comments

Comments
 (0)