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:
8f7d6c1
)
isl_map_simplify.c: normalize_divs_in_context: improve error handling
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 18 Apr 2013 13:02:47 +0000
(15:02 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 22 Apr 2013 07:38:19 +0000
(09:38 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map_simplify.c
patch
|
blob
|
history
diff --git
a/isl_map_simplify.c
b/isl_map_simplify.c
index
00533cf
..
5cb6bfb
100644
(file)
--- a/
isl_map_simplify.c
+++ b/
isl_map_simplify.c
@@
-2147,6
+2147,8
@@
static struct isl_basic_map *normalize_divs_in_context(
for (i = 0; i < context->n_eq; ++i) {
int k;
k = isl_basic_map_alloc_equality(bmap);
+ if (k < 0)
+ return isl_basic_map_free(bmap);
isl_seq_cpy(bmap->eq[k], context->eq[i], 1 + total_context);
isl_seq_clr(bmap->eq[k] + 1 + total_context,
isl_basic_map_total_dim(bmap) - total_context);