mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SIL] add Value.lifetimeEndingUses
This commit is contained in:
@@ -153,6 +153,10 @@ extension Sequence where Element == Operand {
|
||||
public func getSingleUser<I: Instruction>(notOfType: I.Type) -> Instruction? {
|
||||
ignoreUsers(ofType: I.self).singleUse?.instruction
|
||||
}
|
||||
|
||||
public var lifetimeEndingUses: LazyFilterSequence<Self> {
|
||||
return self.lazy.filter { $0.endsLifetime }
|
||||
}
|
||||
}
|
||||
|
||||
extension OptionalBridgedOperand {
|
||||
|
||||
Reference in New Issue
Block a user