Skip to content

Commit 8eee0ff

Browse files
Merge pull request #62677 from valeriyvan/CanonicalizeOSSALifetime-enum
2 parents cfa0d63 + 735faf9 commit 8eee0ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void CanonicalizeOSSALifetime::extendLivenessThroughOverlappingAccess() {
402402
continue;
403403
}
404404
// Stop at the latest use. An earlier end_access does not overlap.
405-
if (blockHasUse && liveness.isInterestingUser(&inst)) {
405+
if (blockHasUse && liveness.isInterestingUser(&inst) != PrunedLiveness::NonUser) {
406406
break;
407407
}
408408
if (endsAccessOverlappingPrunedBoundary(&inst)) {

0 commit comments

Comments
 (0)