isl_basic_map_move_dims: always finalize result
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 3 Jun 2010 16:33:14 +0000 (18:33 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 3 Jun 2010 16:33:14 +0000 (18:33 +0200)
isl_map.c

index 66612d1..358e656 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -2149,6 +2149,8 @@ __isl_give isl_basic_map *isl_basic_map_move_dims(
                if (!bmap->dim)
                        goto error;
 
+               bmap = isl_basic_map_finalize(bmap);
+
                return bmap;
        }