commit 762e686d17b7c3a97358302940c84701650668a0 (tree)
parent 39016c1d3e4fe3cc579a5c0c5aea696401562900
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Wed, 18 May 2016 18:20:15 -0700
inline assembly: allow empty output list
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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);