projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d296d90
)
isl_set_from_pw_aff: handle NULL input
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 19 Nov 2011 13:47:58 +0000
(14:47 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 21 Nov 2011 23:01:51 +0000
(
00:01
+0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_aff.c
patch
|
blob
|
history
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",