isl_map_range: construct correct space for result
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 28 Aug 2011 08:31:23 +0000 (10:31 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 3 Sep 2011 10:04:54 +0000 (12:04 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c

index f08afe6..fd6a4a2 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -4192,7 +4192,7 @@ struct isl_set *isl_map_range(struct isl_map *map)
                goto error;
 
        set = (struct isl_set *) map;
-       set->dim = isl_space_drop_inputs(set->dim, 0, set->dim->n_in);
+       set->dim = isl_space_range(set->dim);
        if (!set->dim)
                goto error;
        for (i = 0; i < map->n; ++i) {