X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_sample_piplib.c;h=4970cd5054974d316ef83ba3eae2c3475ac21be3;hb=19596bc4e5cd282b2e75d17077b1aaaeacbfd6f9;hp=d7c1a73c200ae972c70c4579c9024d33d32aecea;hpb=f3c292bf31fbb13ce50a8877ee71910897276a24;p=platform%2Fupstream%2Fisl.git diff --git a/isl_sample_piplib.c b/isl_sample_piplib.c index d7c1a73..4970cd5 100644 --- a/isl_sample_piplib.c +++ b/isl_sample_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 @@ -24,9 +24,9 @@ struct isl_vec *isl_pip_basic_set_sample(struct isl_basic_set *bset) if (!bset) goto error; - ctx = bset->ctx; + ctx = isl_basic_set_get_ctx(bset); isl_assert(ctx, isl_basic_set_n_param(bset) == 0, goto error); - isl_assert(ctx, bset->n_div == 0, goto error); + isl_assert(ctx, isl_basic_set_dim(bset, isl_dim_div) == 0, goto error); dim = isl_basic_set_n_dim(bset); domain = isl_basic_map_to_pip((struct isl_basic_map *)bset, 0, 0, 0); if (!domain)