X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_bound.c;h=9783604b89e730a2bdd0d9f9a46aa5cc45bf68cc;hb=5b3053fd95942f02deaa8d087b42b6e3d817a670;hp=c67fcbfb4ea247bca27bb4cfc618b1f8bf318320;hpb=c151ce24e5cec7bb995014e3187b9453f8de4761;p=platform%2Fupstream%2Fisl.git diff --git a/isl_bound.c b/isl_bound.c index c67fcbf..9783604 100644 --- a/isl_bound.c +++ b/isl_bound.c @@ -233,10 +233,11 @@ __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_bound( } if (isl_pw_qpolynomial_fold_is_zero(pwf)) { + enum isl_fold type = pwf->type; isl_pw_qpolynomial_fold_free(pwf); if (tight) *tight = 1; - return isl_pw_qpolynomial_fold_zero(dim, pwf->type); + return isl_pw_qpolynomial_fold_zero(dim, type); } bound.pwf = isl_pw_qpolynomial_fold_zero(isl_dim_copy(dim), pwf->type);