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 b1dbb65 commit 168986bCopy full SHA for 168986b
SwiftCompilerSources/Sources/Optimizer/Utilities/BorrowUtils.swift
@@ -288,7 +288,8 @@ enum BeginBorrowValue {
288
switch value {
289
case let bbi as BeginBorrowInst: self = .beginBorrow(bbi)
290
case let lbi as LoadBorrowInst: self = .loadBorrow(lbi)
291
- case let arg as FunctionArgument: self = .functionArgument(arg)
+ case let arg as FunctionArgument where arg.ownership == .guaranteed:
292
+ self = .functionArgument(arg)
293
case let arg as Argument where arg.isReborrow:
294
self = .reborrow(Phi(arg)!)
295
default:
0 commit comments