isl_union_*_alloc: project space onto parameters
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 2 Sep 2011 06:23:58 +0000 (08:23 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 3 Sep 2011 19:43:08 +0000 (21:43 +0200)
Before, we were expecting the user to provide a parameter space,
but we might as well project whatever the user gives us onto
its parameter space.

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

index 46723ab..9b54e1c 100644 (file)
@@ -46,6 +46,7 @@ static __isl_give UNION *FN(UNION,alloc)(__isl_take isl_space *dim, int size)
 {
        UNION *u;
 
+       dim = isl_space_params(dim);
        if (!dim)
                return NULL;