From 475255a9dbc1475d403034bde9865a7e44b8e42e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 21 Aug 2018 09:30:01 +0200 Subject: [PATCH] isl_multi_*_dim: use isl_multi_*_peek_space This reduces the dependence on the internal representation. Signed-off-by: Sven Verdoolaege --- isl_multi_templ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_multi_templ.c b/isl_multi_templ.c index 4f70c902..fa3e88f1 100644 --- a/isl_multi_templ.c +++ b/isl_multi_templ.c @@ -156,7 +156,7 @@ __isl_null MULTI(BASE) *FN(MULTI(BASE),free)(__isl_take MULTI(BASE) *multi) unsigned FN(MULTI(BASE),dim)(__isl_keep MULTI(BASE) *multi, enum isl_dim_type type) { - return multi ? isl_space_dim(multi->space, type) : 0; + return isl_space_dim(FN(MULTI(BASE),peek_space)(multi), type); } /* Return the position of the first dimension of "type" with id "id". -- 2.11.4.GIT