X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_lp_piplib.c;h=c95af4c161e5b70d8442ec47fc1e7eb59bc36236;hb=82e48de0422ba8469fa52009563a2a686cb73145;hp=7ee0beccec1fd74e2053136cf80d673fe3f782a0;hpb=f3c292bf31fbb13ce50a8877ee71910897276a24;p=platform%2Fupstream%2Fisl.git diff --git a/isl_lp_piplib.c b/isl_lp_piplib.c index 7ee0bec..c95af4c 100644 --- a/isl_lp_piplib.c +++ b/isl_lp_piplib.c @@ -1,7 +1,7 @@ /* * Copyright 2008-2009 Katholieke Universiteit Leuven * - * Use of this software is governed by the GNU LGPLv2.1 license + * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, K.U.Leuven, Departement * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium @@ -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)