summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-08 14:23:02 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-08 15:01:28 +0100
commit42da75f12fb56c3656a7132b9bd6ecde605701eb (patch)
treeb48d37a1804d4451c64ebf3ee470758fca8adb61
parenta44581f6320eeb55835439b1fd51d9b96979899b (diff)
Improve error recovery in parse_asm_arguments().
There is not need to abort parsing arguments, if we failed to parse the name for an asm argument.
-rw-r--r--parser.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 16e388d..01aac6b 100644
--- 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");