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:
0c49639
)
isl_dim_tuple_match: handle NULL input
author
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 10 Aug 2011 17:31:16 +0000
(19:31 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 11 Aug 2011 08:12:03 +0000
(10:12 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_dim.c
patch
|
blob
|
history
diff --git
a/isl_dim.c
b/isl_dim.c
index
771a71d
..
9f9e55c
100644
(file)
--- a/
isl_dim.c
+++ b/
isl_dim.c
@@
-394,6
+394,9
@@
int isl_dim_tuple_match(__isl_keep isl_dim *dim1, enum isl_dim_type dim1_type,
struct isl_name *name1, *name2;
isl_dim *nested1, *nested2;
+ if (!dim1 || !dim2)
+ return -1;
+
if (n(dim1, dim1_type) != n(dim2, dim2_type))
return 0;
name1 = tuple_name(dim1, dim1_type);