Set the type of a function call to be the return type of the callee

This commit is contained in:
Ian Romanick 2010-03-23 12:21:18 -07:00
parent e39cc69fa3
commit 9e7c34b865
1 changed files with 2 additions and 0 deletions

2
ir.h
View File

@ -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);
}