File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -465,6 +465,10 @@ class CanonicalizeOSSALifetime final {
465465 UserRange getUsers () const { return liveness->getAllUsers (); }
466466
467467private:
468+ bool endingLifetimeAtExplicitEnds () const {
469+ return explicitLifetimeEnds.size () > 0 ;
470+ }
471+
468472 bool respectsDeinitBarriers () const {
469473 if (!currentDef->isLexical ())
470474 return false ;
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ void CanonicalizeOSSALifetime::extendLivenessToDeadEnds() {
387387
388388void CanonicalizeOSSALifetime::extendLivenessToDeinitBarriers () {
389389 SmallVector<SILInstruction *, 8 > ends;
390- if (explicitLifetimeEnds. size () > 0 ) {
390+ if (endingLifetimeAtExplicitEnds () ) {
391391 visitExtendedUnconsumedBoundary (
392392 explicitLifetimeEnds,
393393 [&ends](auto *instruction, auto lifetimeEnding) {
You can’t perform that action at this time.
0 commit comments