From: Aldy Hernandez Date: Tue, 11 Oct 2022 15:22:40 +0000 (+0200) Subject: Add an frange(type) constructor analogous to the irange version. X-Git-Tag: basepoints/gcc-14~3964 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a901343aa314eb08b362fc6878456d12f96e49b7;p=thirdparty%2Fgcc.git Add an frange(type) constructor analogous to the irange version. gcc/ChangeLog: * value-range.h (frange::frange): Add constructor taking type. --- diff --git a/gcc/value-range.h b/gcc/value-range.h index 07a2067898c9..9d630e40f78a 100644 --- a/gcc/value-range.h +++ b/gcc/value-range.h @@ -281,6 +281,7 @@ public: frange (); frange (const frange &); frange (tree, tree, value_range_kind = VR_RANGE); + frange (tree type); frange (tree type, const REAL_VALUE_TYPE &min, const REAL_VALUE_TYPE &max, value_range_kind = VR_RANGE); static bool supports_p (const_tree type) @@ -1059,6 +1060,13 @@ frange::frange (const frange &src) *this = src; } +inline +frange::frange (tree type) +{ + m_discriminator = VR_FRANGE; + set_varying (type); +} + // frange constructor from REAL_VALUE_TYPE endpoints. inline