diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2022-03-18 11:50:33 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2022-05-13 10:39:41 -0400 |
commit | 98e475a8f58ca3ba6e9bd5c9276efce4236f5d26 (patch) | |
tree | 23b251154718e5f4ef9bfcc95ba0c0be5fda847d | |
parent | b0ad41c6101ad6f9729bf53a8dcdccad0778e513 (diff) | |
download | gcc-98e475a8f58ca3ba6e9bd5c9276efce4236f5d26.zip gcc-98e475a8f58ca3ba6e9bd5c9276efce4236f5d26.tar.gz gcc-98e475a8f58ca3ba6e9bd5c9276efce4236f5d26.tar.bz2 |
Fix return value in ranger_cache::get_global_range.
The "is_current" status is returned by parameter, but was being returned by the
function as well instead of true if NAME had a global range, and FALSE
if it did not.
* gimple-range-cache.cc (ranger_cache::get_global_range): Return the
had_global value instead.
-rw-r--r-- | gcc/gimple-range-cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc index bdb3046..d3cf8be 100644 --- a/gcc/gimple-range-cache.cc +++ b/gcc/gimple-range-cache.cc @@ -951,7 +951,7 @@ ranger_cache::get_global_range (irange &r, tree name, bool ¤t_p) // If the existing value was not current, mark it as always current. if (!current_p) m_temporal->set_always_current (name); - return current_p; + return had_global; } // Set the global range of NAME to R and give it a timestamp. |