From: Ian Romanick Date: Tue, 23 Mar 2010 19:21:18 +0000 (-0700) Subject: Set the type of a function call to be the return type of the callee X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e7c34b865309c65ea5a763900e2d0eae4b58ce5;p=mesa.git Set the type of a function call to be the return type of the callee --- 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); }