We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e75e77 commit 9f66949Copy full SHA for 9f66949
SwiftCompilerSources/Sources/SIL/Instruction.swift
@@ -441,7 +441,7 @@ public enum VariableScopeInstruction {
441
}
442
443
public var endOperands: LazyFilterSequence<UseList> {
444
- return scopeBegin.uses.endingLifetime
+ scopeBegin.uses.lazy.filter { $0.endsLifetime || $0.instruction is ExtendLifetimeInst }
445
446
447
// TODO: with SIL verification, we might be able to make varDecl non-Optional.
0 commit comments