From d1cc391e652e3e0c3a46e5738ce3c172f13b4024 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 10 Oct 2011 18:02:18 -0400 Subject: [PATCH] Insert missing error check into isl_pw_*_intersect_domain Signed-off-by: Andreas Kloeckner Signed-off-by: Sven Verdoolaege --- isl_pw_templ.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_pw_templ.c b/isl_pw_templ.c index a446c43..1aa129f 100644 --- a/isl_pw_templ.c +++ b/isl_pw_templ.c @@ -421,6 +421,8 @@ __isl_give PW *FN(PW,intersect_domain)(__isl_take PW *pw, __isl_take isl_set *se aff = isl_set_affine_hull(isl_set_copy(pw->p[i].set)); pw->p[i].FIELD = FN(EL,substitute_equalities)(pw->p[i].FIELD, aff); + if (!pw->p[i].FIELD) + goto error; if (isl_set_plain_is_empty(pw->p[i].set)) { isl_set_free(pw->p[i].set); FN(EL,free)(pw->p[i].FIELD); -- 2.7.4