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:
5f90cb8
)
isl_{map,set}_dim: handle NULL input
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 4 Feb 2010 16:50:36 +0000
(17:50 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 4 Feb 2010 16:50:36 +0000
(17:50 +0100)
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
1d66a66
..
2203b7b
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-125,12
+125,12
@@
unsigned isl_basic_map_dim(const struct isl_basic_map *bmap,
unsigned isl_map_dim(const struct isl_map *map, enum isl_dim_type type)
{
- return
n(map->dim, type)
;
+ return
map ? n(map->dim, type) : 0
;
}
unsigned isl_set_dim(const struct isl_set *set, enum isl_dim_type type)
{
- return
n(set->dim, type)
;
+ return
set ? n(set->dim, type) : 0
;
}
unsigned isl_basic_map_offset(struct isl_basic_map *bmap,