]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-vrp.c (may_contain_p): Do not access m_min/m_max directly.
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2018 09:52:53 +0000 (09:52 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2018 09:52:53 +0000 (09:52 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265954 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-vrp.c

index c84b0fd1860f372b3457baa39ce986277113e02d..0d4ab1bba0fa279367e547c21e788bb815aa3dfd 100644 (file)
@@ -1,3 +1,7 @@
+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
index e45d7885645c7aa85f77858105d84b38e04e9516..6df749c56dd532c7d3c16e64040ca11d3714105d 100644 (file)
@@ -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