From 67e3311c9277994cfa570e81c52b34e31d38c281 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 2 Dec 2012 13:14:19 +0100 Subject: [PATCH] isl_basic_map_normalize: avoid invalid access on error Signed-off-by: Sven Verdoolaege --- isl_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isl_map.c b/isl_map.c index e1681678..6e87e8d1 100644 --- a/isl_map.c +++ b/isl_map.c @@ -8240,7 +8240,8 @@ struct isl_basic_map *isl_basic_map_normalize(struct isl_basic_map *bmap) return bmap; bmap = isl_basic_map_remove_redundancies(bmap); bmap = isl_basic_map_sort_constraints(bmap); - ISL_F_SET(bmap, ISL_BASIC_MAP_NORMALIZED); + if (bmap) + ISL_F_SET(bmap, ISL_BASIC_MAP_NORMALIZED); return bmap; } -- 2.11.4.GIT