From 9e7c34b865309c65ea5a763900e2d0eae4b58ce5 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 23 Mar 2010 12:21:18 -0700 Subject: [PATCH] Set the type of a function call to be the return type of the callee --- ir.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ir.h b/ir.h index 618f2a655af..997a37c0795 100644 --- a/ir.h +++ b/ir.h @@ -298,6 +298,8 @@ public: ir_call(const ir_function_signature *callee, exec_list *actual_parameters) : ir_instruction(ir_op_call), callee(callee) { + assert(callee->return_type != NULL); + type = callee->return_type; actual_parameters->move_nodes_to(& this->actual_parameters); } -- 2.30.2