Skip to content

Commit

Permalink
Fixed support for NOP
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jan 12, 2024
1 parent b50536f commit 27a50bf
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 82 deletions.
2 changes: 1 addition & 1 deletion ir.g
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ ir_sym_data(ir_loader *loader):
ir_func(ir_parser_ctx *p):
{p->undef_count = 0;}
{ir_strtab_init(&p->var_tab, 256, 4096);}
"{" (ir_insn(p) ";")* "}"
"{" ( ("NOP" | ir_insn(p) ) ";")* "}"
{if (p->undef_count) ir_check_indefined_vars(p);}
{ir_strtab_free(&p->var_tab);}
;
Expand Down
Loading

0 comments on commit 27a50bf

Please sign in to comment.