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-ubsan.c | |
parent | 87ab2b04ae1997b5b90f5dd11494f2186ee4f3a8 (diff) | |
download | gcc-311bd4d8973d4ad8727e3dcf842fbc4bcfd12d7b.tar.gz |
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-ubsan.c')
-rw-r--r-- | gcc/cp/cp-ubsan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-ubsan.c b/gcc/cp/cp-ubsan.c index 0c1b04750aa..c0d1ffcfc43 100644 --- a/gcc/cp/cp-ubsan.c +++ b/gcc/cp/cp-ubsan.c @@ -200,7 +200,7 @@ cp_ubsan_check_member_access_r (tree *stmt_p, int *walk_subtrees, void *data) { case ADDR_EXPR: t = TREE_OPERAND (stmt, 0); - while ((TREE_CODE (t) == MEM_REF || TREE_CODE (t) == INDIRECT_REF) + while ((TREE_CODE (t) == MEM_REF || INDIRECT_REF_P (t)) && TREE_CODE (TREE_OPERAND (t, 0)) == ADDR_EXPR) t = TREE_OPERAND (TREE_OPERAND (t, 0), 0); if (handled_component_p (t)) |