mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 10:51:10 +00:00
ast_call now passes AST_FLAG_NORETURN on to the IR
This commit is contained in:
parent
ba434c8e22
commit
c8e163b0df
1 changed files with 3 additions and 1 deletions
4
ast.c
4
ast.c
|
@ -2905,7 +2905,9 @@ bool ast_call_codegen(ast_call *self, ast_function *func, bool lvalue, ir_value
|
|||
vec_push(params, param);
|
||||
}
|
||||
|
||||
callinstr = ir_block_create_call(func->curblock, ast_ctx(self), ast_function_label(func, "call"), funval, false);
|
||||
callinstr = ir_block_create_call(func->curblock, ast_ctx(self),
|
||||
ast_function_label(func, "call"),
|
||||
funval, !!(self->func->expression.flags & AST_FLAG_NORETURN));
|
||||
if (!callinstr)
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Reference in a new issue