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 1e446b4 commit 1bcdfcaCopy full SHA for 1bcdfca
SwiftCompilerSources/Sources/Optimizer/Utilities/OptUtils.swift
@@ -72,10 +72,10 @@ extension Value {
72
switch v {
73
case let fw as ForwardingInstruction:
74
worklist.pushIfNotVisited(contentsOf: fw.definedOperands.values)
75
+ case let ot as OwnershipTransitionInstruction where !(ot is CopyingInstruction):
76
+ worklist.pushIfNotVisited(ot.operand.value)
77
case let bf as BorrowedFromInst:
78
worklist.pushIfNotVisited(bf.borrowedValue)
- case let bb as BeginBorrowInst:
- worklist.pushIfNotVisited(bb.borrowedValue)
79
case let arg as Argument:
80
if let phi = Phi(arg) {
81
worklist.pushIfNotVisited(contentsOf: phi.incomingValues)
0 commit comments