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:
47de9c7
)
isl_ast_codegen.c: create_node: avoid invalid access on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 11:15:00 +0000
(12:15 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 11:23:44 +0000
(12:23 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast_codegen.c
patch
|
blob
|
history
diff --git
a/isl_ast_codegen.c
b/isl_ast_codegen.c
index
bec2939
..
33edeaa
100644
(file)
--- a/
isl_ast_codegen.c
+++ b/
isl_ast_codegen.c
@@
-1458,7
+1458,7
@@
static __isl_give isl_ast_graft *create_node(__isl_take isl_union_map *executed,
if (isl_aff_get_denominator(offset, &data.d) < 0)
executed = isl_union_map_free(executed);
- if (isl_int_is_divisible_by(data.m, data.d))
+ if (
executed &&
isl_int_is_divisible_by(data.m, data.d))
isl_int_divexact(data.m, data.m, data.d);
else
isl_int_set_si(data.m, 1);