aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@gcc.gnu.org>2019-06-28 14:56:27 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2019-06-28 14:56:27 +0000
commit46c21a7f1c83d65f38392c045c74d4f670015f70 (patch)
treebfaa46244fb7d9b23437de4b0c49cec6355dade1 /gcc
parent80a42f11c9502b8ef891ad8ec816e02f938b4ed7 (diff)
downloadgcc-46c21a7f1c83d65f38392c045c74d4f670015f70.zip
gcc-46c21a7f1c83d65f38392c045c74d4f670015f70.tar.gz
gcc-46c21a7f1c83d65f38392c045c74d4f670015f70.tar.bz2
Dump out value_range_base undefine's correctly.
From-SVN: r272787
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-vrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 04d3b82..d56fad9 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -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 ())