mirror of
https://github.com/ziglang/zig.git
synced 2026-11-24 21:43:40 -05:00
inline assembly: allow empty output list
This commit is contained in:
1 parent
39016c1d3e
commit
762e686d17
1 file changed
+6
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user