Call finalize in isl_basic_map_set_dim_name
authorAndreas Kloeckner <inform@tiker.net>
Sun, 20 May 2012 19:11:58 +0000 (15:11 -0400)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 20 May 2012 21:46:23 +0000 (23:46 +0200)
Signed-off-by: Andreas Kloeckner <inform@tiker.net>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c

index 3c08c2f..2c30637 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -501,7 +501,7 @@ __isl_give isl_basic_map *isl_basic_map_set_dim_name(
        bmap->dim = isl_space_set_dim_name(bmap->dim, type, pos, s);
        if (!bmap->dim)
                goto error;
-       return bmap;
+       return isl_basic_map_finalize(bmap);
 error:
        isl_basic_map_free(bmap);
        return NULL;