From: Sven Verdoolaege Date: Fri, 9 Dec 2011 18:51:06 +0000 (+0100) Subject: isl_map_from_pw_aff: handle NULL input X-Git-Tag: isl-0.09~14^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8417bb09e7e817b48d38c68d491dba73b4629a2;p=platform%2Fupstream%2Fisl.git isl_map_from_pw_aff: handle NULL input Signed-off-by: Sven Verdoolaege --- diff --git a/isl_aff.c b/isl_aff.c index 9a6ce14..c1f5557 100644 --- a/isl_aff.c +++ b/isl_aff.c @@ -1411,6 +1411,8 @@ static __isl_give isl_map *map_from_pw_aff(__isl_take isl_pw_aff *pwaff) */ __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff) { + if (!pwaff) + return NULL; if (isl_space_is_set(pwaff->dim)) isl_die(isl_pw_aff_get_ctx(pwaff), isl_error_invalid, "space of input is not a map",