mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 08:40:33 +08:00
[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:
parent
928bc5b863
commit
2b2f2ee49a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user