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 c0ad676 commit f56d984Copy full SHA for f56d984
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