mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
Do not actually return after generating a call, there are other isntructions following
This commit is contained in:
parent
bcd8138e43
commit
3987509493
2 changed files with 3 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -640,7 +640,9 @@ bool ast_function_codegen(ast_function *self, ir_builder *ir)
|
|||
{
|
||||
if (!self->vtype->expression.next ||
|
||||
self->vtype->expression.next->expression.vtype == TYPE_VOID)
|
||||
{
|
||||
return ir_block_create_return(self->curblock, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* error("missing return"); */
|
||||
|
|
2
ir.c
2
ir.c
|
@ -2263,7 +2263,7 @@ tailcall:
|
|||
if (code_statements_add(stmt) < 0)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (instr->opcode == INSTR_STATE) {
|
||||
|
|
Loading…
Reference in a new issue