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:
b2bdf2f
)
isl_input.c: read_map_tuple: return early on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 30 Nov 2012 16:57:23 +0000
(17:57 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 30 Nov 2012 22:38:28 +0000
(23:38 +0100)
This avoids spurious error messages.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_input.c
patch
|
blob
|
history
diff --git
a/isl_input.c
b/isl_input.c
index
f2e57e7
..
0f5a1bf
100644
(file)
--- a/
isl_input.c
+++ b/
isl_input.c
@@
-1043,6
+1043,8
@@
static __isl_give isl_map *read_map_tuple(struct isl_stream *s,
n = isl_multi_pw_aff_dim(tuple, isl_dim_out);
space = isl_space_range(isl_multi_pw_aff_get_space(tuple));
+ if (!space)
+ goto error;
if (type == isl_dim_param) {
if (isl_space_has_tuple_name(space, isl_dim_set) ||