From de5e0accfde9920878cda186f43b046ed8a2ecd4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 3 Dec 2013 16:21:20 +0100 Subject: [PATCH] isl_union_*_align_params: handle inputs that are not parameter spaces 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 --- isl_union_templ.c | 1 + 1 file changed, 1 insertion(+) diff --git a/isl_union_templ.c b/isl_union_templ.c index 06df2464..e1865646 100644 --- a/isl_union_templ.c +++ b/isl_union_templ.c @@ -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; -- 2.11.4.GIT