summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-03-23 12:21:18 -0700
committerIan Romanick <[email protected]>2010-03-23 12:21:18 -0700
commit9e7c34b865309c65ea5a763900e2d0eae4b58ce5 (patch)
tree5bb1880ded6263638ddf7ba47223e53bd59a22a9
parente39cc69fa3cb830b803fe0c4f6c30915aa886b5b (diff)
Set the type of a function call to be the return type of the callee
-rw-r--r--ir.h2
1 files changed, 2 insertions, 0 deletions
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);
}