From c8e163b0df968a8e6e503d6a11fb2821fcf76595 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 19 Dec 2012 20:47:01 +0100 Subject: [PATCH] ast_call now passes AST_FLAG_NORETURN on to the IR --- ast.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2