Skip to content

Commit 96321f8

Browse files
committed
[Refactoring] fix looking odd logical expression mixing bool and enum
1 parent 54f9cae commit 96321f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,7 @@ void CanonicalizeOSSALifetime::extendLivenessThroughOverlappingAccess() {
400400
findLastConsume = !destroys.contains(&inst);
401401
continue;
402402
}
403-
// Stop at the latest use. An earlier end_access does not overlap.
404-
if (blockHasUse && liveness.isInterestingUser(&inst)) {
403+
if (blockHasUse && liveness.isInterestingUser(&inst) != PrunedLiveness::NonUser) {
405404
break;
406405
}
407406
if (endsAccessOverlappingPrunedBoundary(&inst)) {

0 commit comments

Comments
 (0)