isl_basic_map_is_empty: explicitly mark basic sets determined to be empty
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 2 Jun 2009 17:32:23 +0000 (19:32 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 7 Jun 2009 09:52:09 +0000 (11:52 +0200)
isl_map.c

index 7ee8767..aec0975 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -3517,6 +3517,8 @@ int isl_basic_map_is_empty(struct isl_basic_map *bmap)
        if (bmap->sample)
                isl_vec_free(bmap->ctx, bmap->sample);
        bmap->sample = sample;
+       if (empty)
+               ISL_F_SET(bmap, ISL_BASIC_MAP_EMPTY);
 
        return empty;
 }