From d8300fcf26cc468a3dc91b5e1a38653fc01dd5bf Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 28 Aug 2018 09:03:56 +0200 Subject: [PATCH] isl_union_map.c:map_excludes: use isl_bool_not When isl_bool was introduced in isl-0.14.1-479-g370a8b7d0 (introduce isl_bool and isl_stat return types, Mon May 4 09:45:16 2015 +0200) isl_bool_not was not yet available. It was only introduced in isl-0.16.1-88-g9e2290e4 (add isl_bool_not, Tue Mar 1 17:15:59 2016 +0100), but at this point not all potential users were updated. This is just a stylistic correction. The original code was correct. Signed-off-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- isl_union_map.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/isl_union_map.c b/isl_union_map.c index 53065e6b..b5b9f8d6 100644 --- a/isl_union_map.c +++ b/isl_union_map.c @@ -3755,9 +3755,7 @@ static isl_bool map_excludes(__isl_keep isl_map *map, void *user) involves = isl_map_involves_dims(map, isl_dim_param, data->first, data->n); - if (involves < 0) - return isl_bool_error; - return !involves; + return isl_bool_not(involves); } /* Does "umap" involve any of the n parameters starting at first? -- 2.11.4.GIT