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:
3e3f118
)
isl_ast_codegen.c: compute_domains: avoid invalid access on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 12:10:31 +0000
(13:10 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 12:10:31 +0000
(13:10 +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
33edeaa
..
1ada490
100644
(file)
--- a/
isl_ast_codegen.c
+++ b/
isl_ast_codegen.c
@@
-2587,6
+2587,9
@@
static __isl_give isl_basic_set_list *compute_domains(
enum isl_ast_build_domain_type type;
int empty;
+ if (!executed)
+ return NULL;
+
ctx = isl_union_map_get_ctx(executed);
domains.list = isl_basic_set_list_alloc(ctx, 0);