From: Sven Verdoolaege Date: Sat, 6 Mar 2010 15:43:10 +0000 (+0100) Subject: isl_map_read: accept '*' in affine expressions X-Git-Tag: isl-0.02~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5d4845710af23d00d8b05bbe13e0568622c5d78;p=platform%2Fupstream%2Fisl.git isl_map_read: accept '*' in affine expressions --- 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);