From de833852553c89852b9328a2c26e71e2189e35ff Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 6 Sep 2016 15:45:55 +0200 Subject: [PATCH] isl_set_dim: implement in terms of isl_map_dim This removes some (minor) code duplication. Signed-off-by: Sven Verdoolaege --- isl_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_map.c b/isl_map.c index 12873a21..a1a8745d 100644 --- a/isl_map.c +++ b/isl_map.c @@ -119,7 +119,7 @@ unsigned isl_map_dim(__isl_keep isl_map *map, enum isl_dim_type type) unsigned isl_set_dim(__isl_keep isl_set *set, enum isl_dim_type type) { - return set ? n(set->dim, type) : 0; + return isl_map_dim(set_to_map(set), type); } /* Return the position of the variables of the given type -- 2.11.4.GIT