public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5404] c++: cp_walk_subtrees simplification for *_CAST_EXPR
@ 2021-11-19 14:01 Patrick Palka
0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2021-11-19 14:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:cb09215ad0bbc96fd67aac16004d2131739df096
commit r12-5404-gcb09215ad0bbc96fd67aac16004d2131739df096
Author: Patrick Palka <ppalka@redhat.com>
Date: Fri Nov 19 09:01:09 2021 -0500
c++: cp_walk_subtrees simplification for *_CAST_EXPR
Let walk_tree_1 do the operand walking for us.
gcc/cp/ChangeLog:
* tree.c (cp_walk_subtrees) <case *_CAST_EXPR>: Don't explicitly
walk the operands.
Diff:
---
gcc/cp/tree.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 32ddf835a91..7050a53abc2 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -5352,13 +5352,6 @@ cp_walk_subtrees (tree *tp, int *walk_subtrees_p, walk_tree_fn func,
case BIT_CAST_EXPR:
if (TREE_TYPE (*tp))
WALK_SUBTREE (TREE_TYPE (*tp));
-
- {
- int i;
- for (i = 0; i < TREE_CODE_LENGTH (TREE_CODE (*tp)); ++i)
- WALK_SUBTREE (TREE_OPERAND (*tp, i));
- }
- *walk_subtrees_p = 0;
break;
case CONSTRUCTOR:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-19 14:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 14:01 [gcc r12-5404] c++: cp_walk_subtrees simplification for *_CAST_EXPR Patrick Palka
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).