diff options
author | Ian Romanick <[email protected]> | 2010-03-23 12:21:18 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-23 12:21:18 -0700 |
commit | 9e7c34b865309c65ea5a763900e2d0eae4b58ce5 (patch) | |
tree | 5bb1880ded6263638ddf7ba47223e53bd59a22a9 | |
parent | e39cc69fa3cb830b803fe0c4f6c30915aa886b5b (diff) |
Set the type of a function call to be the return type of the callee
-rw-r--r-- | ir.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |