aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-08-16 13:55:30 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-08-16 13:55:30 +0000
commit370f4759839b573d45ed86050d51564dcac629b7 (patch)
treeea6b5640fb50bd80de0488670f53e68836652312 /gcc/tree.c
parentc50584186d58165c8cd3978712b5bfc18f18fcc5 (diff)
downloadgcc-370f4759839b573d45ed86050d51564dcac629b7.zip
gcc-370f4759839b573d45ed86050d51564dcac629b7.tar.gz
gcc-370f4759839b573d45ed86050d51564dcac629b7.tar.bz2
tree.h (ptrofftype_p): New helper function.
2011-08-16 Richard Guenther <rguenther@suse.de> * tree.h (ptrofftype_p): New helper function. * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR offset verification. (verify_gimple_assign_binary): Likewise. * tree.c (build2_stat): Likewise. * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise. (reset_evolution_in_loop): Likewise. * tree-chrec.h (build_polynomial_chrec): Likewise. From-SVN: r177784
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index d20751a..3eaf2f9 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3784,8 +3784,7 @@ build2_stat (enum tree_code code, tree tt, tree arg0, tree arg1 MEM_STAT_DECL)
if (code == POINTER_PLUS_EXPR && arg0 && arg1 && tt)
gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0))
- && INTEGRAL_TYPE_P (TREE_TYPE (arg1))
- && useless_type_conversion_p (sizetype, TREE_TYPE (arg1)));
+ && ptrofftype_p (TREE_TYPE (arg1)));
t = make_node_stat (code PASS_MEM_STAT);
TREE_TYPE (t) = tt;