From 78b4fdabda274aab7c1c72f28400e473a0d12bb6 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 2 Jan 2012 14:10:50 +0100 Subject: [PATCH] isl_map_project_out: properly handle named or nested spaces Signed-off-by: Sven Verdoolaege --- isl_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4