diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2007-11-14 00:41:05 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2007-11-14 00:41:05 +0000 |
commit | 7cbb9e290262fc10104e673248332e1a889ac1b4 (patch) | |
tree | a58b453d84f3c83a204d582951b4139511dbf1b6 /gcc/tree-chrec.h | |
parent | 9732cac401838a94672455399bd5b85fc2fc06b5 (diff) | |
download | gcc-7cbb9e290262fc10104e673248332e1a889ac1b4.zip gcc-7cbb9e290262fc10104e673248332e1a889ac1b4.tar.gz gcc-7cbb9e290262fc10104e673248332e1a889ac1b4.tar.bz2 |
tree-chrec.h (build_polynomial_chrec): RHS of a chrec should not be of pointer type.
2007-11-13 Sebastian Pop <sebastian.pop@amd.com>
* tree-chrec.h (build_polynomial_chrec): RHS of a chrec
should not be of pointer type.
From-SVN: r130167
Diffstat (limited to 'gcc/tree-chrec.h')
-rw-r--r-- | gcc/tree-chrec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-chrec.h b/gcc/tree-chrec.h index e84ecd7..c908ec5 100644 --- a/gcc/tree-chrec.h +++ b/gcc/tree-chrec.h @@ -132,6 +132,11 @@ build_polynomial_chrec (unsigned loop_num, if (no_evolution_in_loop_p (left, loop_num, &val) && !val) return chrec_dont_know; + /* Pointer types should occur only on the left hand side, i.e. in + the base of the chrec, and not in the step. */ + gcc_assert (!POINTER_TYPE_P (TREE_TYPE (right))); + + /* 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)); else |