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:
5244075
)
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>
Fri, 19 Apr 2013 17:03:52 +0000
(19:03 +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
618d7df
..
47b13c0
100644
(file)
--- a/
isl_map_simplify.c
+++ b/
isl_map_simplify.c
@@
-2117,6
+2117,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);