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 {
465
465
UserRange getUsers () const { return liveness->getAllUsers (); }
466
466
467
467
private:
468
+ bool endingLifetimeAtExplicitEnds () const {
469
+ return explicitLifetimeEnds.size () > 0 ;
470
+ }
471
+
468
472
bool respectsDeinitBarriers () const {
469
473
if (!currentDef->isLexical ())
470
474
return false ;
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ void CanonicalizeOSSALifetime::extendLivenessToDeadEnds() {
387
387
388
388
void CanonicalizeOSSALifetime::extendLivenessToDeinitBarriers () {
389
389
SmallVector<SILInstruction *, 8 > ends;
390
- if (explicitLifetimeEnds. size () > 0 ) {
390
+ if (endingLifetimeAtExplicitEnds () ) {
391
391
visitExtendedUnconsumedBoundary (
392
392
explicitLifetimeEnds,
393
393
[&ends](auto *instruction, auto lifetimeEnding) {
You can’t perform that action at this time.
0 commit comments