diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-18 18:20:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-05-18 18:20:15 -0700 |
| commit | 762e686d17b7c3a97358302940c84701650668a0 (patch) | |
| tree | 24588b6abf6434fafe8335e3019bb6b05887ff45 /src/parser.cpp | |
| parent | 39016c1d3e4fe3cc579a5c0c5aea696401562900 (diff) | |
| download | zig-762e686d17b7c3a97358302940c84701650668a0.tar.gz zig-762e686d17b7c3a97358302940c84701650668a0.zip | |
inline assembly: allow empty output list
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 057d162fc7..bafcbd767e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1017,6 +1017,12 @@ static void ast_parse_asm_output(ParseContext *pc, int *token_index, AstNode *no *token_index += 1; + Token *colon_again = &pc->tokens->at(*token_index); + if (colon_again->id == TokenIdColon) { + ast_parse_asm_input(pc, token_index, node); + return; + } + for (;;) { ast_parse_asm_output_item(pc, token_index, node); |
