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:
0b6be14
)
isl_dim_get_tuple_id: complain if tuple has no id
author
Sven Verdoolaege
<skimo@kotnet.org>
Tue, 9 Aug 2011 14:45:45 +0000
(16:45 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 12 Aug 2011 09:38:28 +0000
(11:38 +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
93f12e8
..
514ab5c
100644
(file)
--- a/
isl_dim.c
+++ b/
isl_dim.c
@@
-308,7
+308,12
@@
__isl_give isl_id *isl_dim_get_tuple_id(__isl_keep isl_dim *dim,
if (!dim)
return NULL;
if (type != isl_dim_in && type != isl_dim_out)
- return NULL;
+ isl_die(dim->ctx, isl_error_invalid,
+ "only input, output and set tuples can have ids",
+ return NULL);
+ if (!dim->tuple_id[type - isl_dim_in])
+ isl_die(dim->ctx, isl_error_invalid,
+ "tuple has no id", return NULL);
return isl_id_copy(dim->tuple_id[type - isl_dim_in]);
}