From 0c5873a9205d90212b2478aa3500bbfb5d5c6e50 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 2 Dec 2012 15:33:42 +0100 Subject: [PATCH] isl_map_simplify.c: remove_dependent_vars: handle NULL input Signed-off-by: Sven Verdoolaege --- isl_map_simplify.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isl_map_simplify.c b/isl_map_simplify.c index 50420344..c3bbbc41 100644 --- a/isl_map_simplify.c +++ b/isl_map_simplify.c @@ -1416,6 +1416,9 @@ static struct isl_basic_map *remove_dependent_vars(struct isl_basic_map *bmap, { int i; + if (!bmap) + return NULL; + for (i = 0; i < bmap->n_div; ++i) { if (isl_int_is_zero(bmap->div[i][0])) continue; -- 2.11.4.GIT