public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2513] Pass relationship to methods calling generic fold_range.
@ 2021-07-26 14:49 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-07-26 14:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3cb72ac17181fd38384cd2149993e643fb8df89f
commit r12-2513-g3cb72ac17181fd38384cd2149993e643fb8df89f
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Mon Jul 26 06:06:37 2021 -0500
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:
---
gcc/range-op.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/range-op.cc b/gcc/range-op.cc
index e0be51dbc90..4bdd14dd6f7 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-26 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 14:49 [gcc r12-2513] Pass relationship to methods calling generic fold_range Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).