summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 618f2a655a..997a37c079 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);
}