mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glsl: Statically cast parameter exec_node to ir_variable.
Formal function parameters are always ir_variable objects, not an arbitrary ir_instruction. So there's no need to dynamically cast here. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
8050584096
commit
02ff2a2758
1 changed files with 1 additions and 1 deletions
|
|
@ -2399,7 +2399,7 @@ builtin_builder::call(ir_function *f, ir_variable *ret, exec_list params)
|
|||
exec_list actual_params;
|
||||
|
||||
foreach_list(node, ¶ms) {
|
||||
ir_variable *var = ((ir_instruction *) node)->as_variable();
|
||||
ir_variable *var = (ir_variable *) node;
|
||||
actual_params.push_tail(var_ref(var));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue