diff options
author | Marek Polacek <polacek@redhat.com> | 2015-06-26 19:55:12 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-06-26 19:55:12 +0000 |
commit | 22d035258b7dcb4e0414d413e32d20a8d8e3cdfe (patch) | |
tree | ec115bec7a7a3f95f3ee52ded9cc7d29440b574b /gcc/c-family/array-notation-common.c | |
parent | 504a5fe6fd6fad3f577c899e37988b8cbb17244b (diff) | |
download | gcc-22d035258b7dcb4e0414d413e32d20a8d8e3cdfe.zip gcc-22d035258b7dcb4e0414d413e32d20a8d8e3cdfe.tar.gz gcc-22d035258b7dcb4e0414d413e32d20a8d8e3cdfe.tar.bz2 |
array-notation-common.c (find_rank): Use INDIRECT_REF_P.
* array-notation-common.c (find_rank): Use INDIRECT_REF_P.
* c-common.c (c_fully_fold_internal): Likewise.
(c_alignof_expr): Likewise.
* c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
* c-ubsan.c (ubsan_instrument_bounds): Likewise.
* cilk.c (create_parm_list): Likewise.
* c-array-notation.c (fix_builtin_array_notation_fn): Use
INDIRECT_REF_P.
* c-typeck.c (array_to_pointer_conversion): Likewise.
(build_unary_op): Likewise.
(c_finish_return): Likewise.
From-SVN: r225080
Diffstat (limited to 'gcc/c-family/array-notation-common.c')
-rw-r--r-- | gcc/c-family/array-notation-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/array-notation-common.c b/gcc/c-family/array-notation-common.c index f517424..f75936a 100644 --- a/gcc/c-family/array-notation-common.c +++ b/gcc/c-family/array-notation-common.c @@ -228,7 +228,7 @@ find_rank (location_t loc, tree orig_expr, tree expr, bool ignore_builtin_fn, ii_tree = ARRAY_NOTATION_ARRAY (ii_tree); } else if (handled_component_p (ii_tree) - || TREE_CODE (ii_tree) == INDIRECT_REF) + || INDIRECT_REF_P (ii_tree)) ii_tree = TREE_OPERAND (ii_tree, 0); else if (TREE_CODE (ii_tree) == PARM_DECL || VAR_P (ii_tree)) |