From cbfebcf6f30db8d0d902986713e5b82717a100ea Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 12 Jun 2013 13:27:06 +0200 Subject: [PATCH] isl_basic_set_variable_compression: use isl_basic_set_offset This reduces the dependence on the internal representation. Signed-off-by: Sven Verdoolaege --- isl_morph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_morph.c b/isl_morph.c index 41606d1e..5f6ff23a 100644 --- a/isl_morph.c +++ b/isl_morph.c @@ -433,7 +433,7 @@ __isl_give isl_morph *isl_basic_set_variable_compression_with_id( if (isl_basic_set_check_no_locals(bset) < 0) return NULL; - otype = 1 + isl_space_offset(bset->dim, type); + otype = isl_basic_set_offset(bset, type); ntype = isl_basic_set_dim(bset, type); orest = otype + ntype; nrest = isl_basic_set_total_dim(bset) - (orest - 1); -- 2.11.4.GIT