mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
Set the type of a function call to be the return type of the callee
This commit is contained in:
parent
e39cc69fa3
commit
9e7c34b865
1 changed files with 2 additions and 0 deletions
2
ir.h
2
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue