diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-11-19 09:01:09 -0500 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-11-19 09:01:09 -0500 |
commit | cb09215ad0bbc96fd67aac16004d2131739df096 (patch) | |
tree | 41ce1f7ced4598dc8139c878578d5e3dd4c7bcbd /gcc/cp/tree.c | |
parent | fd740165e54151ea794fca34904f5c2e2ea1dcda (diff) | |
download | gcc-cb09215ad0bbc96fd67aac16004d2131739df096.zip gcc-cb09215ad0bbc96fd67aac16004d2131739df096.tar.gz gcc-cb09215ad0bbc96fd67aac16004d2131739df096.tar.bz2 |
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.
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 32ddf83..7050a53 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: |