isl_basic_map_set_to_empty: remove sample (if any)
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 20 Jan 2010 16:50:28 +0000 (17:50 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 24 Jan 2010 17:09:20 +0000 (18:09 +0100)
isl_map.c

index e60c16c..f78a00d 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -1132,6 +1132,8 @@ struct isl_basic_map *isl_basic_map_set_to_empty(struct isl_basic_map *bmap)
        isl_int_set_si(bmap->eq[i][0], 1);
        isl_seq_clr(bmap->eq[i]+1, total);
        ISL_F_SET(bmap, ISL_BASIC_MAP_EMPTY);
+       isl_vec_free(bmap->sample);
+       bmap->sample = NULL;
        return isl_basic_map_finalize(bmap);
 error:
        isl_basic_map_free(bmap);