X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ftree-chrec.h;h=c908ec5c66b49417c1dc7f9cb516da44831414b1;hp=e84ecd76b0ca6c6674cc70c95b8cd57c31e27b76;hb=ecc3a7ab76907cdb1a31fdb6502f4022b0cefe79;hpb=eabff7ed2eafe852c98feae0062e0473ae6d0095 diff --git a/gcc/tree-chrec.h b/gcc/tree-chrec.h index e84ecd76b0c..c908ec5c66b 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