isl_union_*_align_params: handle inputs that are not parameter spaces
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 3 Dec 2013 15:21:20 +0000 (3 16:21 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 4 Dec 2013 12:16:35 +0000 (4 13:16 +0100)
isl_parameter_alignment_reordering expects its input to be a parameter
space, but no such requirement is specified for the *_align_params functions.

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

index 06df246..e186564 100644 (file)
@@ -307,6 +307,7 @@ __isl_give UNION *FN(UNION,align_params)(__isl_take UNION *u,
                return u;
        }
 
+       model = isl_space_params(model);
        data.exp = isl_parameter_alignment_reordering(u->dim, model);
        if (!data.exp)
                goto error;