projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
isl_set_from_pw_aff: handle NULL input
[platform/upstream/isl.git]
/
isl_aff.c
diff --git
a/isl_aff.c
b/isl_aff.c
index
23d17f0
..
a6573be
100644
(file)
--- a/
isl_aff.c
+++ b/
isl_aff.c
@@
-1422,6
+1422,8
@@
__isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff)
*/
__isl_give isl_set *isl_set_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 set",