From: Sven Verdoolaege Date: Mon, 2 Jan 2012 13:10:50 +0000 (+0100) Subject: isl_map_project_out: properly handle named or nested spaces X-Git-Tag: isl-0.10~8^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78b4fdabda274aab7c1c72f28400e473a0d12bb6;p=platform%2Fupstream%2Fisl.git isl_map_project_out: properly handle named or nested spaces Signed-off-by: Sven Verdoolaege --- diff --git a/isl_map.c b/isl_map.c index 8b4aea3..d2d6759 100644 --- a/isl_map.c +++ b/isl_map.c @@ -2995,7 +2995,7 @@ __isl_give isl_basic_map *isl_basic_map_project_out( isl_int *old; if (n == 0) - return bmap; + return basic_map_space_reset(bmap, type); if (!bmap) return NULL; @@ -3065,7 +3065,7 @@ __isl_give isl_map *isl_map_project_out(__isl_take isl_map *map, return NULL; if (n == 0) - return map; + return map_space_reset(map, type); isl_assert(map->ctx, first + n <= isl_map_dim(map, type), goto error);