summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_functions.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-01-10 16:13:54 -0800
committerKenneth Graunke <[email protected]>2014-01-13 11:38:19 -0800
commit02ff2a275892aa180c84fa2fbb5b44409218c0f3 (patch)
tree18ba715f7fbf7afe4bfcb375b5421d52248049ee /src/glsl/builtin_functions.cpp
parent8050584096eec50570bfc0c81926050f27a5dfe5 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/builtin_functions.cpp')
-rw-r--r--src/glsl/builtin_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index 5b8463a8942..662ff4cea3f 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -2399,7 +2399,7 @@ builtin_builder::call(ir_function *f, ir_variable *ret, exec_list params)
exec_list actual_params;
foreach_list(node, &params) {
- ir_variable *var = ((ir_instruction *) node)->as_variable();
+ ir_variable *var = (ir_variable *) node;
actual_params.push_tail(var_ref(var));
}