From: Aldy Hernandez Date: Mon, 4 Nov 2019 19:52:15 +0000 (+0000) Subject: Handle VR_UNDEFINED in value_range_base::normalize_addresses(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c58d50469989799d0f1cc9baff54cc61802b53ed;p=gcc.git Handle VR_UNDEFINED in value_range_base::normalize_addresses(). From-SVN: r277791 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd1b042a470..d45d4fc786d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-04 Aldy Hernandez + + * tree-vrp.c (value_range_base::normalize_addresses): Handle + VR_UNDEFINED. + 2019-11-04 Aldy Hernandez * tree-vrp.c (dump_assert_info): New. diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 7c35802dacc..c0c1e87a259 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -6130,6 +6130,9 @@ value_range::union_ (const value_range *other) value_range_base value_range_base::normalize_addresses () const { + if (undefined_p ()) + return *this; + if (!POINTER_TYPE_P (type ()) || range_has_numeric_bounds_p (this)) return *this;