aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-07-09 18:32:29 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-07-09 18:32:29 +0000
commit38a178dd99642468bfbc390a5b8b8d17dd926cdc (patch)
treed19bfa340525e1e908efb96bd72cab46f84918a8 /gcc/tree-cfg.c
parentc8aa02cc70491747e1c909943540f9dd4c105591 (diff)
downloadgcc-38a178dd99642468bfbc390a5b8b8d17dd926cdc.zip
gcc-38a178dd99642468bfbc390a5b8b8d17dd926cdc.tar.gz
gcc-38a178dd99642468bfbc390a5b8b8d17dd926cdc.tar.bz2
re PR middle-end/44890 (Hitting gcc_assert in build2_stat with pr30388.c testsuite test case)
2010-07-09 Richard Guenther <rguenther@suse.de> PR middle-end/44890 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF if base is a pointer. * tree-cfg.c (verify_expr): Update MEM_REF checking. From-SVN: r162005
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index c700793..9e38ca7 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -2610,7 +2610,8 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
case MEM_REF:
x = TREE_OPERAND (t, 0);
- if (!is_gimple_mem_ref_addr (x))
+ if (!POINTER_TYPE_P (TREE_TYPE (x))
+ || !is_gimple_mem_ref_addr (x))
{
error ("Invalid first operand of MEM_REF.");
return x;