Merge branch 'maint'
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 31 Aug 2011 17:38:16 +0000 (31 19:38 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 31 Aug 2011 17:38:16 +0000 (31 19:38 +0200)
1  2 
isl_map.c
isl_polynomial.c
isl_test.c

diff --cc isl_map.c
+++ b/isl_map.c
@@@ -2612,7 -2445,21 +2626,21 @@@ error
        return NULL;
  }
  
 -__isl_give isl_map *isl_map_insert(__isl_take isl_map *map,
+ static __isl_give isl_map *map_space_reset(__isl_take isl_map *map,
+       enum isl_dim_type type)
+ {
+       isl_dim *space;
+       if (!isl_dim_is_named_or_nested(map->dim, type))
+               return map;
+       space = isl_map_get_dim(map);
+       space = isl_dim_reset(space, type);
+       map = isl_map_reset_dim(map, space);
+       return map;
+ }
 +__isl_give isl_map *isl_map_insert_dims(__isl_take isl_map *map,
                enum isl_dim_type type, unsigned pos, unsigned n)
  {
        int i;
Simple merge
diff --cc isl_test.c
Simple merge