From aaa7dc790a7c69315059eea54f2516d8a98df5d9 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 28 Jun 2011 23:18:20 +0200 Subject: [PATCH] isl_qpolynomial_insert_dims: properly handle named or nested spaces For consistency, we remove any naming or nesting even if n == 0. Signed-off-by: Sven Verdoolaege --- isl_polynomial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_polynomial.c b/isl_polynomial.c index ec973cc..0639789 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -2780,7 +2780,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_insert_dims( unsigned g_pos; int *exp; - if (n == 0) + if (n == 0 && !isl_dim_is_named_or_nested(qp->dim, type)) return qp; qp = isl_qpolynomial_cow(qp); -- 2.7.4