From f6695459c8f993523b4bbf3f1bd0635d890ce84a Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 1 Nov 2010 15:59:43 +0100 Subject: [PATCH] isl_basic_map_underlying_set: remove any structure and names from the input Signed-off-by: Sven Verdoolaege --- isl_map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/isl_map.c b/isl_map.c index ee43d40..93ffa58 100644 --- a/isl_map.c +++ b/isl_map.c @@ -3493,7 +3493,9 @@ struct isl_basic_set *isl_basic_map_underlying_set( if (!bmap) goto error; if (bmap->dim->nparam == 0 && bmap->dim->n_in == 0 && - bmap->n_div == 0 && !isl_dim_get_tuple_name(bmap->dim, isl_dim_out)) + bmap->n_div == 0 && + !isl_dim_is_named_or_nested(bmap->dim, isl_dim_in) && + !isl_dim_is_named_or_nested(bmap->dim, isl_dim_out)) return (struct isl_basic_set *)bmap; bmap = isl_basic_map_cow(bmap); if (!bmap) -- 2.7.4