We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf1101 commit ec2e575Copy full SHA for ec2e575
include/swift/SIL/PrunedLiveness.h
@@ -399,7 +399,7 @@ class PrunedLiveness {
399
: value(lifetimeEnding ? Value::Ending : Value::NonEnding) {}
400
operator Value() const { return value; }
401
LifetimeEnding meet(LifetimeEnding const other) const {
402
- return value < other.value ? *this : other;
+ return std::min(value, other.value);
403
}
404
void meetInPlace(LifetimeEnding const other) { *this = meet(other); }
405
bool isEnding() const { return value == Value::Ending; }
0 commit comments