]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Dump out value_range_base undefine's correctly.
authorAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 28 Jun 2019 14:56:27 +0000 (14:56 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 28 Jun 2019 14:56:27 +0000 (14:56 +0000)
From-SVN: r272787

gcc/tree-vrp.c

index 04d3b82cd438408bc8e8d0c6a39e97e81f0de680..d56fad9dfc3eae3347a195391b503d99269d4632 100644 (file)
@@ -429,8 +429,8 @@ void
 value_range_base::dump (FILE *file) const
 {
   tree ttype;
-  if (undefined_p () || varying_p ())
-    ttype = m_min;
+  if (undefined_p () && !m_min)
+    ttype = void_type_node;
   else ttype = TREE_TYPE (m_min);
 
   if (undefined_p ())