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 ed0b5b8 commit 96f5dc2Copy full SHA for 96f5dc2
SwiftCompilerSources/Sources/SIL/ForwardingInstruction.swift
@@ -73,6 +73,19 @@ extension Value {
73
}
74
75
76
+extension Value {
77
+ public func isForwarded(from: Value) -> Bool {
78
+ if self == from {
79
+ return true
80
+ }
81
+ if let forward = self.forwardingInstruction,
82
+ let singleOp = forward.singleForwardedOperand {
83
+ return singleOp.value.isForwarded(from: from)
84
85
+ return false
86
87
+}
88
+
89
//===----------------------------------------------------------------------===//
90
// singleForwardedOperand
91
0 commit comments