diff options
author | Marek Polacek <polacek@redhat.com> | 2015-06-26 10:03:35 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-06-26 10:03:35 +0000 |
commit | 311bd4d8973d4ad8727e3dcf842fbc4bcfd12d7b (patch) | |
tree | 346b0f9e5ddde7af6f22b233ee2d0f975c64e28a /gcc/cp/cp-array-notation.c | |
parent | 87ab2b04ae1997b5b90f5dd11494f2186ee4f3a8 (diff) | |
download | gcc-311bd4d8973d4ad8727e3dcf842fbc4bcfd12d7b.zip gcc-311bd4d8973d4ad8727e3dcf842fbc4bcfd12d7b.tar.gz gcc-311bd4d8973d4ad8727e3dcf842fbc4bcfd12d7b.tar.bz2 |
cp-array-notation.c (expand_sec_reduce_builtin): Use INDIRECT_REF_P.
* cp-array-notation.c (expand_sec_reduce_builtin): Use INDIRECT_REF_P.
* cp-ubsan.c (cp_ubsan_check_member_access_r): Likewise.
From-SVN: r224999
Diffstat (limited to 'gcc/cp/cp-array-notation.c')
-rw-r--r-- | gcc/cp/cp-array-notation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c index 3b8610f..9b8034e 100644 --- a/gcc/cp/cp-array-notation.c +++ b/gcc/cp/cp-array-notation.c @@ -345,7 +345,7 @@ expand_sec_reduce_builtin (tree an_builtin_fn, tree *new_var) array_ind_value = get_temp_regvar (TREE_TYPE (func_parm), 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) { |