diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-16 13:55:30 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-16 13:55:30 +0000 |
commit | a845d31714483eaf03ecdbb74bddea1ea9212676 (patch) | |
tree | ea6b5640fb50bd80de0488670f53e68836652312 /gcc/tree-chrec.h | |
parent | 5e36e11936341bc6a3c081a5da2377e463fd675d (diff) | |
download | gcc-a845d31714483eaf03ecdbb74bddea1ea9212676.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177784 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-chrec.h')
-rw-r--r-- | gcc/tree-chrec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-chrec.h b/gcc/tree-chrec.h index 9b971bde1af..bf9bff0f999 100644 --- a/gcc/tree-chrec.h +++ b/gcc/tree-chrec.h @@ -145,7 +145,7 @@ build_polynomial_chrec (unsigned loop_num, /* Types of left and right sides of a chrec should be compatible. */ if (POINTER_TYPE_P (TREE_TYPE (left))) - gcc_assert (sizetype == TREE_TYPE (right)); + gcc_assert (ptrofftype_p (TREE_TYPE (right))); else gcc_assert (TREE_TYPE (left) == TREE_TYPE (right)); |