aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2015-10-16 10:52:46 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-10-16 10:52:46 +0000
commitf7bad97d6316243751539113e0063cd6e5712491 (patch)
tree1cccdf81bc7305275f81dd7b131675af14df311e /gcc/tree.c
parent872dae48e2bb95295eb596e55cabe0eab8792253 (diff)
downloadgcc-f7bad97d6316243751539113e0063cd6e5712491.zip
gcc-f7bad97d6316243751539113e0063cd6e5712491.tar.gz
gcc-f7bad97d6316243751539113e0063cd6e5712491.tar.bz2
tree.c (recompute_tree_invariant_for_addr_expr): Assert that the argument is an ADDR_EXPR.
* tree.c (recompute_tree_invariant_for_addr_expr): Assert that the argument is an ADDR_EXPR. From-SVN: r228870
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 905c60e..9d0e9de 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4248,6 +4248,8 @@ recompute_tree_invariant_for_addr_expr (tree t)
tree node;
bool tc = true, se = false;
+ gcc_assert (TREE_CODE (t) == ADDR_EXPR);
+
/* We started out assuming this address is both invariant and constant, but
does not have side effects. Now go down any handled components and see if
any of them involve offsets that are either non-constant or non-invariant.