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:
9be7fe7
)
isl_map_read: accept '*' in affine expressions
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 6 Mar 2010 15:43:10 +0000
(16:43 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Tue, 9 Mar 2010 11:38:12 +0000
(12:38 +0100)
isl_input.c
patch
|
blob
|
history
diff --git
a/isl_input.c
b/isl_input.c
index
becced6
..
8b8480a
100644
(file)
--- a/
isl_input.c
+++ b/
isl_input.c
@@
-187,6
+187,11
@@
static struct isl_vec *accept_affine(struct isl_stream *s, struct vars *v)
struct isl_token *tok2;
int n = v->n;
int pos = -1;
+ if (isl_stream_eat_if_available(s, '*') &&
+ !isl_stream_next_token_is(s, ISL_TOKEN_IDENT)) {
+ isl_stream_error(s, NULL, "missing identifier");
+ goto error;
+ }
tok2 = isl_stream_next_token(s);
if (tok2 && tok2->type == ISL_TOKEN_IDENT) {
pos = vars_pos(v, tok2->u.s, -1);