projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2592280
)
isl_basic_map_range_product: check that parameters match
author
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 25 Apr 2012 15:05:16 +0000
(17:05 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 2 Aug 2012 10:20:07 +0000
(12:20 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
77537a1
..
e68b192
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-8452,6
+8452,11
@@
__isl_give isl_basic_map *isl_basic_map_range_product(
if (!bmap1 || !bmap2)
goto error;
+ if (!isl_space_match(bmap1->dim, isl_dim_param,
+ bmap2->dim, isl_dim_param))
+ isl_die(isl_basic_map_get_ctx(bmap1), isl_error_invalid,
+ "parameters don't match", goto error);
+
dim_result = isl_space_range_product(isl_space_copy(bmap1->dim),
isl_space_copy(bmap2->dim));