* [COMMITTED] [PR c++/106654] Handle non-irange ranges in get_range_global for default defs.
@ 2022-10-20 19:43 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2022-10-20 19:43 UTC (permalink / raw)
To: GCC patches; +Cc: Andrew MacLeod, Aldy Hernandez
With the upcoming [[assume]] work, Andrew has pointed out that
non-irange ranges are not handled in get_range_global for
SSA_NAME_IS_DEFAULT_DEF. This patch fixes the oversight.
PR c++/106654
gcc/ChangeLog:
* value-query.cc (get_range_global): Handle non integer ranges for
default def SSA names.
---
gcc/value-query.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ())
--
2.37.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-20 19:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 19:43 [COMMITTED] [PR c++/106654] Handle non-irange ranges in get_range_global for default defs Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).