repo.or.cz
/
isl.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
b6ce376
)
isl_sample.c: sample_bounded: use isl_basic_set_get_ctx
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 20 Feb 2015 11:14:09 +0000
(20 12:14 +0100)
committer
Sven 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
patch
|
blob
|
blame
|
history
diff --git
a/isl_sample.c
b/isl_sample.c
index
eaa0754
..
560ad95
100644
(file)
--- a/
isl_sample.c
+++ b/
isl_sample.c
@@
-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;
}