Skip to content

Commit 88445c5

Browse files
committed
[NFC] PrunedLiveness: Use std::min.
1 parent b8c308d commit 88445c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/PrunedLiveness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class PrunedLiveness {
402402
bool isEnding() const { return value == Value::Ending; }
403403

404404
LifetimeEnding meet(LifetimeEnding const other) const {
405-
return value < other.value ? *this : other;
405+
return std::min(value, other.value);
406406
}
407407
void meetInPlace(LifetimeEnding const other) { *this = meet(other); }
408408
};

0 commit comments

Comments
 (0)