isl_union_map_alloc: project space argument onto its parameters
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 3 Feb 2013 15:18:55 +0000 (16:18 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 3 Feb 2013 15:18:55 +0000 (16:18 +0100)
We are only interested in the parameters anyway, so we might as well
project out all the other dimensions.

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

index 1528ebd..ed6639f 100644 (file)
@@ -41,6 +41,7 @@ static __isl_give isl_union_map *isl_union_map_alloc(__isl_take isl_space *dim,
 {
        isl_union_map *umap;
 
+       dim = isl_space_params(dim);
        if (!dim)
                return NULL;