Skip to content

Commit 5be742f

Browse files
committed
SwiftCompilerSources: fix BeginApplyInst.endOperands.
isScopeEndingUse is not the same as endsLifetime.
1 parent e506928 commit 5be742f

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

13451345
extension BeginApplyInst : ScopedInstruction {
13461346
public var endOperands: LazyFilterSequence<UseList> {
1347-
return token.uses.lazy.filter { $0.endsLifetime }
1347+
return token.uses.lazy.filter { $0.isScopeEndingUse }
13481348
}
13491349
}
13501350

0 commit comments

Comments
 (0)