From c0e9f9e6d0ad8d4a645fc628275a5797c2907196 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 15 Jan 2012 15:21:17 +0100 Subject: [PATCH] isl_map_simple_hull: improve error handling Signed-off-by: Sven Verdoolaege --- isl_convex_hull.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isl_convex_hull.c b/isl_convex_hull.c index a6e26b84..52c59d21 100644 --- a/isl_convex_hull.c +++ b/isl_convex_hull.c @@ -2339,6 +2339,9 @@ struct isl_basic_map *isl_map_simple_hull(struct isl_map *map) hull = isl_basic_map_intersect(hull, affine_hull); hull = isl_basic_map_remove_redundancies(hull); + + if (!hull) + return NULL; ISL_F_SET(hull, ISL_BASIC_MAP_NO_IMPLICIT); ISL_F_SET(hull, ISL_BASIC_MAP_ALL_EQUALITIES); -- 2.11.4.GIT