X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_reordering.c;h=30e2c8b466b13df11904e025739d48d61db8fb36;hb=ca90b151a05f17ccc1c3215ff24dc5d7b9198ff4;hp=d99d7ac8b653ce8208b7ef5ed1791207be0ffa0e;hpb=0d458c47aefdc037512282a3250de99d9d24b8c9;p=platform%2Fupstream%2Fisl.git diff --git a/isl_reordering.c b/isl_reordering.c index d99d7ac..30e2c8b 100644 --- a/isl_reordering.c +++ b/isl_reordering.c @@ -1,7 +1,7 @@ /* * Copyright 2010 INRIA Saclay * - * Use of this software is governed by the GNU LGPLv2.1 license + * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France, * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod, @@ -128,6 +128,8 @@ __isl_give isl_reordering *isl_parameter_alignment_reordering( } } + if (!exp->dim) + return isl_reordering_free(exp); return exp; error: isl_reordering_free(exp); @@ -182,6 +184,9 @@ __isl_give isl_reordering *isl_reordering_extend_space( isl_reordering_free(exp); + if (!res->dim) + return isl_reordering_free(res); + return res; error: isl_reordering_free(exp);