aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2007-01-28 18:29:30 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2007-01-28 17:29:30 +0000
commitb39c6706458c006734d1a02c1a180b00d88182a5 (patch)
tree5584bc12f9475f3810931ad8f96a5763d6be8a78 /gcc/tree-data-ref.c
parent9891ec5f7d2ce04df2e49dafca8136a7d71c5fbe (diff)
downloadgcc-b39c6706458c006734d1a02c1a180b00d88182a5.zip
gcc-b39c6706458c006734d1a02c1a180b00d88182a5.tar.gz
gcc-b39c6706458c006734d1a02c1a180b00d88182a5.tar.bz2
tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the conflict function is valid.
* tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the conflict function is valid. From-SVN: r121259
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index d6201b6..794bb83 100644
--- a/gcc/tree-data-ref.c
+++ b/gcc/tree-data-ref.c
@@ -2418,6 +2418,7 @@ conflict_fn (unsigned n, ...)
conflict_function *ret = XCNEW (conflict_function);
va_list ap;
+ gcc_assert (0 < n && n <= MAX_DIM);
va_start(ap, n);
ret->n = n;