From: Wolfgang (Blub) Bumiller Date: Wed, 19 Dec 2012 19:47:01 +0000 (+0100) Subject: ast_call now passes AST_FLAG_NORETURN on to the IR X-Git-Tag: 0.1.9~38 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8e163b0df968a8e6e503d6a11fb2821fcf76595;p=xonotic%2Fgmqcc.git ast_call now passes AST_FLAG_NORETURN on to the IR --- diff --git a/ast.c b/ast.c index fe7ea6a..93d2a17 100644 --- a/ast.c +++ b/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;