projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
isl_basic_set_expand_divs: avoid invalid access on error
[platform/upstream/isl.git]
/
isl_ast_codegen.c
diff --git
a/isl_ast_codegen.c
b/isl_ast_codegen.c
index
1ada490
..
9d4d93b
100644
(file)
--- a/
isl_ast_codegen.c
+++ b/
isl_ast_codegen.c
@@
-1737,6
+1737,8
@@
static __isl_give isl_ast_graft_list *generate_sorted_domains(
data.depth = isl_ast_build_get_depth(build);
data.piece = domain_list->p;
g = isl_tarjan_graph_init(ctx, n, &domain_follows_at_depth, &data);
+ if (!g)
+ goto error;
i = 0;
while (list && n) {