isl_stream_read_map: allow extra ';' at end of map description
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 15 Feb 2011 15:01:16 +0000 (16:01 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 17 Feb 2011 18:50:22 +0000 (19:50 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_input.c

index 9dca423..6d5a5f6 100644 (file)
@@ -1833,6 +1833,10 @@ static struct isl_obj obj_read(struct isl_stream *s, int nparam)
                if (!tok || tok->type != ';')
                        break;
                isl_token_free(tok);
+               if (isl_stream_next_token_is(s, '}')) {
+                       tok = isl_stream_next_token(s);
+                       break;
+               }
        }
 
        if (tok && tok->type == '}') {