From 35633b3d2561f55d1cd4b671af3d8cbb57bc5221 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 21 Apr 2015 14:29:30 +0200 Subject: [PATCH] isl_coalesce.c: check_facets: improve error handling Signed-off-by: Sven Verdoolaege --- isl_coalesce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_coalesce.c b/isl_coalesce.c index b6a05c15..57d28efe 100644 --- a/isl_coalesce.c +++ b/isl_coalesce.c @@ -484,6 +484,8 @@ static enum isl_change check_facets(int i, int j, if (info[j].ineq[l] != STATUS_CUT) continue; stat = status_in(info[j].bmap->ineq[l], info[i].tab); + if (stat < 0) + return isl_change_error; if (stat != STATUS_VALID) break; } -- 2.11.4.GIT