Skip to content

Commit b5bef61

Browse files
committed
SwiftCompilerSources: fix BeginApply.endOperands()/endInstructions()
Only return the EndApplyInst and AbortApplyInst uses.
1 parent 3e26cf8 commit b5bef61

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
@@ -1342,7 +1342,7 @@ final public class AbortApplyInst : Instruction, UnaryInstruction {
13421342

13431343
extension BeginApplyInst : ScopedInstruction {
13441344
public var endOperands: LazyFilterSequence<UseList> {
1345-
return token.uses.lazy.filter { _ in true }
1345+
return token.uses.lazy.filter { $0.endsLifetime }
13461346
}
13471347
}
13481348

0 commit comments

Comments
 (0)