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 667d5f8 commit 2c36401Copy full SHA for 2c36401
SwiftCompilerSources/Sources/Optimizer/Utilities/BorrowUtils.swift
@@ -293,7 +293,8 @@ enum BeginBorrowValue {
293
switch value {
294
case let bbi as BeginBorrowInst: self = .beginBorrow(bbi)
295
case let lbi as LoadBorrowInst: self = .loadBorrow(lbi)
296
- case let arg as FunctionArgument: self = .functionArgument(arg)
+ case let arg as FunctionArgument where arg.ownership == .guaranteed:
297
+ self = .functionArgument(arg)
298
case let arg as Argument where arg.isReborrow:
299
self = .reborrow(Phi(arg)!)
300
default:
0 commit comments