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:
5b866b2
)
isl_basic_set_total_dim: handle NULL input
author
Sven Verdoolaege
<skimo@kotnet.org>
Tue, 17 Apr 2012 10:34:22 +0000
(12:34 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Tue, 17 Apr 2012 19:09:13 +0000
(21:09 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
b0f5100
..
e0defa7
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-122,6
+122,8
@@
unsigned isl_basic_set_n_param(__isl_keep isl_basic_set *bset)
unsigned isl_basic_set_total_dim(const struct isl_basic_set *bset)
{
+ if (!bset)
+ return 0;
return isl_space_dim(bset->dim, isl_dim_all) + bset->n_div;
}