bug fix
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
|
||||
fun x(a, b, c)
|
||||
print(a, b, c);
|
||||
|
||||
print(x(1, 2, 3));
|
||||
|
||||
fun hello()
|
||||
print('hel\nlo', 2);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user