From f72824c6847312b75197e00a7dd6dbde9d35950f 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 2899e03b..32522b49 100644 --- a/isl_coalesce.c +++ b/isl_coalesce.c @@ -290,6 +290,8 @@ static int check_facets(struct isl_map *map, int i, int j, if (ineq_j[l] != STATUS_CUT) continue; stat = status_in(map->p[j]->ineq[l], tabs[i]); + if (stat < 0) + return -1; if (stat != STATUS_VALID) break; } -- 2.11.4.GIT