isl_map_affine_hull: add missing cow
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 16 Aug 2008 14:55:47 +0000 (16:55 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 25 Aug 2008 08:15:07 +0000 (10:15 +0200)
isl_affine_hull.c

index 496b852..f2c6761 100644 (file)
@@ -230,6 +230,7 @@ struct isl_basic_map *isl_map_affine_hull(struct isl_ctx *ctx,
                map->p[i] = isl_basic_map_align_divs(ctx, map->p[i], map->p[0]);
 
        for (i = 0; i < map->n; ++i) {
+               map->p[i] = isl_basic_map_cow(ctx, map->p[i]);
                map->p[i] = isl_basic_map_affine_hull(ctx, map->p[i]);
                map->p[i] = isl_basic_map_gauss(ctx, map->p[i], NULL);
                if (!map->p[i])