Skip to content

Commit 6aaf200

Browse files
committed
SwiftCompilerSources: remove the BeginBorrowInst.endBorrows API
Using this API almost certainly indicates a bug, because it neglects re-borrows.
1 parent 3ffd4fe commit 6aaf200

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,6 @@ extension BeginAccessInst : ScopedInstruction {
880880
final public class BeginBorrowInst : SingleValueInstruction, UnaryInstruction, BorrowIntroducingInstruction {
881881
public var borrowedValue: Value { operand.value }
882882

883-
public typealias EndBorrowSequence = LazyMapSequence<LazyFilterSequence<LazyMapSequence<UseList, EndBorrowInst?>>,
884-
EndBorrowInst>
885-
886-
public var endBorrows: EndBorrowSequence {
887-
uses.lazy.compactMap({ $0.instruction as? EndBorrowInst })
888-
}
889-
890883
public var isLexical: Bool { bridged.BeginBorrow_isLexical() }
891884
public var hasPointerEscape: Bool { bridged.BeginBorrow_hasPointerEscape() }
892885
}

0 commit comments

Comments
 (0)