Commit 6e40dcae by Aldy Hernandez Committed by Aldy Hernandez

* tree-vrp.c (may_contain_p): Do not access m_min/m_max directly.

From-SVN: r265954
parent 5756b6a8
2018-11-08 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.c (may_contain_p): Do not access m_min/m_max directly.
2018-11-08 Aldy Hernandez <aldyh@redhat.com>
* vr-values.c (vr_values::get_value_range): Use value_range API
instead of piecing together ranges.
(vr_values::update_value_range): Same.
......@@ -250,10 +250,10 @@ value_range::may_contain_p (tree val) const
if (m_kind == VR_ANTI_RANGE)
{
int res = value_inside_range (val, m_min, m_max);
int res = value_inside_range (val, min (), max ());
return res == 0 || res == -2;
}
return value_inside_range (val, m_min, m_max) != 0;
return value_inside_range (val, min (), max ()) != 0;
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment