Add an frange(type) constructor analogous to the irange version.

gcc/ChangeLog:

	* value-range.h (frange::frange): Add constructor taking type.
This commit is contained in:
Aldy Hernandez 2022-10-11 17:22:40 +02:00
parent bb00d0974e
commit a901343aa3
1 changed files with 8 additions and 0 deletions

View File

@ -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