isl_qpolynomial_drop_dims: properly handle nested spaces
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 28 Jun 2011 17:03:01 +0000 (19:03 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 29 Jun 2011 19:04:27 +0000 (21:04 +0200)
For consistency, we remove the nesting even if n == 0.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_polynomial.c

index a2b9602..ec973cc 100644 (file)
@@ -2312,7 +2312,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_drop_dims(
 {
        if (!qp)
                return NULL;
-       if (n == 0 && !isl_dim_get_tuple_name(qp->dim, type))
+       if (n == 0 && !isl_dim_is_named_or_nested(qp->dim, type))
                return qp;
 
        qp = isl_qpolynomial_cow(qp);