Skip to content

Commit 7b9b97f

Browse files
committed
Swift SIL: fix BeginAccessInst.endInstructions
1 parent de6e539 commit 7b9b97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ extension BeginAccessInst : ScopedInstruction {
534534
public typealias EndInstructions = LazyMapSequence<LazyFilterSequence<LazyMapSequence<UseList, EndAccessInst?>>, EndAccessInst>
535535

536536
public var endInstructions: EndInstructions {
537-
uses.lazy.compactMap({ $0.value.definingInstruction as? EndAccessInst })
537+
uses.lazy.compactMap({ $0.instruction as? EndAccessInst })
538538
}
539539
}
540540

0 commit comments

Comments
 (0)