isl_multi_*_reset_space_and_domain: call isl_*_reset_domain_space
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 16 Jul 2012 10:39:28 +0000 (12:39 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 18 Sep 2012 12:59:00 +0000 (14:59 +0200)
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 <skimo@kotnet.org>
isl_multi_templ.c

index 8bd40a6..aed0dce 100644 (file)
@@ -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;
        }