Message ID | 20221020194326.260151-1-aldyh@redhat.com |
---|---|
State | New |
Headers | show |
Series | [COMMITTED,PR,c++/106654] Handle non-irange ranges in get_range_global for default defs. | expand |
diff --git a/gcc/value-query.cc b/gcc/value-query.cc index 296784be31d..e8988ed67e0 100644 --- a/gcc/value-query.cc +++ b/gcc/value-query.cc @@ -343,7 +343,7 @@ get_range_global (vrange &r, tree name) && ((cfun && nonnull_arg_p (sym)) || get_ssa_name_ptr_info_nonnull (name))) r.set_nonzero (type); - else if (INTEGRAL_TYPE_P (type)) + else if (!POINTER_TYPE_P (type)) { get_ssa_name_range_info (r, name); if (r.undefined_p ())