mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 03:01:30 +00:00
NRCALL now sets block->final and block->is_return
This commit is contained in:
parent
bf267d0238
commit
7c5fc26081
1 changed files with 4 additions and 0 deletions
4
ir.c
4
ir.c
|
@ -1581,6 +1581,10 @@ ir_instr* ir_block_create_call(ir_block *self, lex_ctx ctx, const char *label, i
|
|||
in = ir_instr_new(ctx, self, (noreturn ? VINSTR_NRCALL : INSTR_CALL0));
|
||||
if (!in)
|
||||
return NULL;
|
||||
if (noreturn) {
|
||||
self->final = true;
|
||||
self->is_return = true;
|
||||
}
|
||||
out = ir_value_out(self->owner, label, (func->outtype == TYPE_VOID) ? store_return : store_value, func->outtype);
|
||||
if (!out) {
|
||||
ir_instr_delete(in);
|
||||
|
|
Loading…
Reference in a new issue