From a3253c286e3184e5195bafd6b9fc2f39318a8089 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 16 Jul 2012 12:39:28 +0200 Subject: [PATCH] isl_multi_*_reset_space_and_domain: call isl_*_reset_domain_space The original code would call isl_*_reset_space_and_domain, but the space of the multi_* is clearly different from the space of the *, so it does not make sense to pass that space to the *. In case of isl_multi_aff, this does not cause any problems because isl_aff_reset_space_and_domain ignore the first argument. However, for an isl_multi_pw_aff, this would cause problems. Call isl_*_reset_domain_space instead. Signed-off-by: Sven Verdoolaege --- isl_multi_templ.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isl_multi_templ.c b/isl_multi_templ.c index 8bd40a68..aed0dce6 100644 --- a/isl_multi_templ.c +++ b/isl_multi_templ.c @@ -228,8 +228,8 @@ __isl_give MULTI(BASE) *FN(MULTI(BASE),reset_space_and_domain)( goto error; for (i = 0; i < multi->n; ++i) { - multi->p[i] = FN(EL,reset_space_and_domain)(multi->p[i], - isl_space_copy(space), isl_space_copy(domain)); + multi->p[i] = FN(EL,reset_domain_space)(multi->p[i], + isl_space_copy(domain)); if (!multi->p[i]) goto error; } -- 2.11.4.GIT