isl_qpolynomial_morph_domain: use isl_qpolynomial_get_ctx
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Mar 2013 16:07:23 +0000 (19 17:07 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 30 Dec 2020 10:35:26 +0000 (30 11:35 +0100)
This reduces the dependence on the internal representation.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_polynomial.c

index 5053000..5684874 100644 (file)
@@ -4391,7 +4391,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_morph_domain(
        if (!qp || !morph)
                goto error;
 
-       ctx = qp->dim->ctx;
+       ctx = isl_qpolynomial_get_ctx(qp);
        isl_assert(ctx, isl_space_is_equal(qp->dim, morph->dom->dim), goto error);
 
        n_sub = morph->inv->n_row - 1;