diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-26 10:03:35 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-26 10:03:35 +0000 |
commit | faf67f0c4508f805dbda667f2f984485d1625702 (patch) | |
tree | 346b0f9e5ddde7af6f22b233ee2d0f975c64e28a /gcc/cp/cp-array-notation.c | |
parent | b141a4bcc9ac87f465d5bffb1b393c182ec8bbe5 (diff) | |
download | gcc-faf67f0c4508f805dbda667f2f984485d1625702.tar.gz |
* cp-array-notation.c (expand_sec_reduce_builtin): Use INDIRECT_REF_P.
* cp-ubsan.c (cp_ubsan_check_member_access_r): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224999 138bc75d-0d04-0410-961f-82ee72b054a4
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 3b8610fba97..9b8034ec8e2 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) { |