[range-ops] Minor readability fix.

gcc/ChangeLog:

	* range-op-float.cc (range_operator_float::fold_range): Make check
	for maybe_isnan more readable.
This commit is contained in:
Aldy Hernandez 2022-11-14 10:29:13 +01:00
parent 928bc5b863
commit 2b2f2ee49a

View File

@ -83,10 +83,12 @@ range_operator_float::fold_range (frange &r, tree type,
r.set (type, lb, ub);
if (lb_nan || ub_nan || maybe_nan)
if (lb_nan || ub_nan || maybe_nan
|| op1.maybe_isnan ()
|| op2.maybe_isnan ())
// Keep the default NAN (with a varying sign) set by the setter.
;
else if (!op1.maybe_isnan () && !op2.maybe_isnan ())
else
r.clear_nan ();
return true;