Skip to content

Commit c11a2ce

Browse files
committed
[NFC] LifetimeCompletion: Fix switch order.
Match the declaration order.
1 parent de5d2ec commit c11a2ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SIL/Utils/OSSALifetimeCompletion.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@ bool OSSALifetimeCompletion::analyzeAndUpdateLifetime(SILValue value,
350350

351351
bool changed = false;
352352
switch (boundary) {
353-
case Boundary::Availability:
354-
changed |= endLifetimeAtAvailabilityBoundary(value, liveness.getLiveness());
355-
break;
356353
case Boundary::Liveness:
357354
changed |= endLifetimeAtLivenessBoundary(value, liveness.getLiveness());
358355
break;
356+
case Boundary::Availability:
357+
changed |= endLifetimeAtAvailabilityBoundary(value, liveness.getLiveness());
358+
break;
359359
}
360360
// TODO: Rebuild outer adjacent phis on demand (SILGen does not currently
361361
// produce guaranteed phis). See FindEnclosingDefs &

0 commit comments

Comments
 (0)