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/c-array-notation.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/c-array-notation.c')
-rw-r--r-- | gcc/c/c-array-notation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-array-notation.c b/gcc/c/c-array-notation.c index 0292468..e6a1539 100644 --- a/gcc/c/c-array-notation.c +++ b/gcc/c/c-array-notation.c @@ -324,7 +324,7 @@ fix_builtin_array_notation_fn (tree an_builtin_fn, tree *new_var) array_ind_value = build_decl (location, VAR_DECL, NULL_TREE, TREE_TYPE (func_parm)); array_op0 = (*array_operand)[0]; - if (TREE_CODE (array_op0) == INDIRECT_REF) + if (INDIRECT_REF_P (array_op0)) array_op0 = TREE_OPERAND (array_op0, 0); switch (an_type) { |