mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
get_tree_range should check the supplied range type.
get_tree_range currently checks whether value_range supports the requested type which is incorrect. It should check whether the supplied vrange supports the type. * value-query.cc (range_query::get_tree_range): Check if return range R supports the expression type.
This commit is contained in:
@@ -336,7 +336,7 @@ range_query::get_tree_range (vrange &r, tree expr, gimple *stmt,
|
||||
else
|
||||
type = TREE_TYPE (expr);
|
||||
|
||||
if (!value_range::supports_type_p (type))
|
||||
if (!r.supports_type_p (type))
|
||||
{
|
||||
r.set_undefined ();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user