isl_sample.c: sample_bounded: use isl_basic_set_get_ctx
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 20 Feb 2015 11:14:09 +0000 (20 12:14 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 21 Feb 2015 18:41:58 +0000 (21 19:41 +0100)
Do so instead of looking into isl_basic_set internals.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_sample.c

index eaa0754..560ad95 100644 (file)
@@ -627,7 +627,7 @@ static struct isl_vec *sample_bounded(struct isl_basic_set *bset)
        if (tab && tab->empty) {
                isl_tab_free(tab);
                ISL_F_SET(bset, ISL_BASIC_SET_EMPTY);
-               sample = isl_vec_alloc(bset->ctx, 0);
+               sample = isl_vec_alloc(isl_basic_set_get_ctx(bset), 0);
                isl_basic_set_free(bset);
                return sample;
        }