aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-07-26 06:06:37 -0500
committerAldy Hernandez <aldyh@redhat.com>2021-07-26 16:49:14 +0200
commit3cb72ac17181fd38384cd2149993e643fb8df89f (patch)
tree0dce098573df388ee0f1808a5ff103f1fc2f6a3d /gcc/range-op.cc
parentbf6d414415e14e13be16abf23375160733567d20 (diff)
downloadgcc-3cb72ac17181fd38384cd2149993e643fb8df89f.zip
gcc-3cb72ac17181fd38384cd2149993e643fb8df89f.tar.gz
gcc-3cb72ac17181fd38384cd2149993e643fb8df89f.tar.bz2
Pass relationship to methods calling generic fold_range.
Fix a small oversight in methods calling the base class fold_range. gcc/ChangeLog: * range-op.cc (operator_lshift::fold_range): Pass rel to base class fold_range. (operator_rshift::fold_range): Same.
Diffstat (limited to 'gcc/range-op.cc')
-rw-r--r--gcc/range-op.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/range-op.cc b/gcc/range-op.cc
index e0be51d..4bdd14d 100644
--- a/gcc/range-op.cc
+++ b/gcc/range-op.cc
@@ -1929,7 +1929,7 @@ bool
operator_lshift::fold_range (irange &r, tree type,
const irange &op1,
const irange &op2,
- relation_kind rel ATTRIBUTE_UNUSED) const
+ relation_kind rel) const
{
int_range_max shift_range;
if (!get_shift_range (shift_range, type, op2))
@@ -1960,7 +1960,7 @@ operator_lshift::fold_range (irange &r, tree type,
}
else
// Otherwise, invoke the generic fold routine.
- return range_operator::fold_range (r, type, op1, shift_range);
+ return range_operator::fold_range (r, type, op1, shift_range, rel);
}
void
@@ -2189,7 +2189,7 @@ bool
operator_rshift::fold_range (irange &r, tree type,
const irange &op1,
const irange &op2,
- relation_kind rel ATTRIBUTE_UNUSED) const
+ relation_kind rel) const
{
int_range_max shift;
if (!get_shift_range (shift, type, op2))
@@ -2201,7 +2201,7 @@ operator_rshift::fold_range (irange &r, tree type,
return true;
}
- return range_operator::fold_range (r, type, op1, shift);
+ return range_operator::fold_range (r, type, op1, shift, rel);
}
void