Improve error recovery in parse_asm_arguments().
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 8 Nov 2012 13:23:02 +0000 (14:23 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 8 Nov 2012 14:01:28 +0000 (15:01 +0100)
There is not need to abort parsing arguments, if we failed to parse the name for an asm argument.

parser.c

index 16e388d..01aac6b 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -8651,8 +8651,6 @@ static asm_argument_t *parse_asm_arguments(bool is_out)
                        argument->symbol = expect_identifier("while parsing asm argument", NULL);
                        rem_anchor_token(']');
                        expect(']');
-                       if (!argument->symbol)
-                               return NULL;
                }
 
                argument->constraints = parse_string_literals("asm argument");