From d5d4845710af23d00d8b05bbe13e0568622c5d78 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 6 Mar 2010 16:43:10 +0100 Subject: [PATCH] isl_map_read: accept '*' in affine expressions --- isl_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/isl_input.c b/isl_input.c index becced6..8b8480a 100644 --- 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); -- 2.7.4