From c61cfe2e302bed8ea59fd7f838ab2e4f0a0c536c Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 2 Aug 2010 11:49:29 +0200 Subject: [PATCH] isl_dim_drop: always remove tuple name, even if number of dims to drop is zero Signed-off-by: Sven Verdoolaege --- isl_dim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_dim.c b/isl_dim.c index 9cb3d7bd..5a053f73 100644 --- a/isl_dim.c +++ b/isl_dim.c @@ -775,7 +775,7 @@ struct isl_dim *isl_dim_drop(struct isl_dim *dim, enum isl_dim_type type, if (!dim) return NULL; - if (n == 0) + if (n == 0 && !isl_dim_get_tuple_name(dim, type)) return dim; isl_assert(dim->ctx, first + num <= n(dim, type), goto error); -- 2.11.4.GIT