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_band: use isl_union_pw_multi_aff to represent partial schedule
[platform/upstream/isl.git]
/
isl_lp_piplib.c
diff --git
a/isl_lp_piplib.c
b/isl_lp_piplib.c
index
7ee0bec
..
d4b92af
100644
(file)
--- a/
isl_lp_piplib.c
+++ b/
isl_lp_piplib.c
@@
-84,8
+84,10
@@
enum isl_lp_result isl_pip_solve_lp(struct isl_basic_map *bmap, int maximize,
if (!sol)
goto error;
- if (vec)
- *vec = isl_vec_alloc(bmap->ctx, 1 + total);
+ if (vec) {
+ isl_ctx *ctx = isl_basic_map_get_ctx(bmap);
+ *vec = isl_vec_alloc(ctx, 1 + total);
+ }
if (vec && !*vec)
res = isl_lp_error;
else if (!sol->list)