mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 00:35:10 +00:00
inline assembly allows clobbers with no input
This commit is contained in:
parent
916a96fb72
commit
92793252ad
@ -497,6 +497,12 @@ static void ast_parse_asm_input(ParseContext *pc, size_t *token_index, AstNode *
|
||||
|
||||
*token_index += 1;
|
||||
|
||||
Token *colon_again = &pc->tokens->at(*token_index);
|
||||
if (colon_again->id == TokenIdColon) {
|
||||
ast_parse_asm_clobbers(pc, token_index, node);
|
||||
return;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
ast_parse_asm_input_item(pc, token_index, node);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user