From 967c966f212a3a05ae88715231cd8dba1e452e2e Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Tue, 4 Aug 2020 06:55:55 +0200 Subject: [PATCH] Adjust get_range_info to use the base irange class. gcc/ChangeLog: * tree-ssanames.c (get_range_info): Use irange instead of value_range. * tree-ssanames.h (get_range_info): Same. --- gcc/tree-ssanames.c | 2 +- gcc/tree-ssanames.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c index c143a93..d943265 100644 --- a/gcc/tree-ssanames.c +++ b/gcc/tree-ssanames.c @@ -441,7 +441,7 @@ get_range_info (const_tree name, wide_int *min, wide_int *max) in a value_range VR. Returns the value_range_kind. */ enum value_range_kind -get_range_info (const_tree name, value_range &vr) +get_range_info (const_tree name, irange &vr) { tree min, max; wide_int wmin, wmax; diff --git a/gcc/tree-ssanames.h b/gcc/tree-ssanames.h index 47df4e4..3395824 100644 --- a/gcc/tree-ssanames.h +++ b/gcc/tree-ssanames.h @@ -73,7 +73,7 @@ extern void set_range_info (tree, const value_range &); /* Gets the value range from SSA. */ extern enum value_range_kind get_range_info (const_tree, wide_int *, wide_int *); -extern enum value_range_kind get_range_info (const_tree, value_range &); +extern enum value_range_kind get_range_info (const_tree, irange &); extern void set_nonzero_bits (tree, const wide_int_ref &); extern wide_int get_nonzero_bits (const_tree); extern bool ssa_name_has_boolean_range (tree); -- 2.7.4