Skip to content

Commit 735faf9

Browse files
committed
Fix looking odd logical expression mixing bool and enum
1 parent 54f9cae commit 735faf9

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
@@ -401,7 +401,7 @@ void CanonicalizeOSSALifetime::extendLivenessThroughOverlappingAccess() {
401401
continue;
402402
}
403403
// Stop at the latest use. An earlier end_access does not overlap.
404-
if (blockHasUse && liveness.isInterestingUser(&inst)) {
404+
if (blockHasUse && liveness.isInterestingUser(&inst) != PrunedLiveness::NonUser) {
405405
break;
406406
}
407407
if (endsAccessOverlappingPrunedBoundary(&inst)) {

0 commit comments

Comments
 (0)