From: Aldy Hernandez Date: Mon, 26 Jul 2021 11:06:37 +0000 (-0500) Subject: Pass relationship to methods calling generic fold_range. X-Git-Tag: basepoints/gcc-13~5800 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cb72ac17181fd38384cd2149993e643fb8df89f;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/range-op.cc b/gcc/range-op.cc index e0be51dbc906..4bdd14dd6f76 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