This commit is contained in:
cozis
2021-11-02 13:24:52 +00:00
parent 87e9f4775b
commit 273adc90eb
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -324,7 +324,8 @@ static _Bool emit_instr_for_node(ExeBuilder *exeb, Node *node, Error *error)
if(!ExeBuilder_Append(exeb, error, OPCODE_POP, &op, 1, arg->base.offset, arg->base.length))
return 0;
assert(arg->base.next->kind == NODE_ARG);
if(arg->base.next)
assert(arg->base.next->kind == NODE_ARG);
arg = (ArgumentNode*) arg->base.next;
}