diff options
author | Matt Turner <mattst88@gmail.com> | 2014-06-24 21:58:35 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-01 08:55:51 -0700 |
commit | c6a16f6d0e489e6d2a1a75bcf34be00e892b3120 (patch) | |
tree | 493e9bd86b9bad457bca713372c5c48718b6eaa0 /src/glsl/opt_function_inlining.cpp | |
parent | e0cb82d0c4ceba437c351d1e37fdb86fe5aed997 (diff) | |
download | external_mesa3d-c6a16f6d0e489e6d2a1a75bcf34be00e892b3120.zip external_mesa3d-c6a16f6d0e489e6d2a1a75bcf34be00e892b3120.tar.gz external_mesa3d-c6a16f6d0e489e6d2a1a75bcf34be00e892b3120.tar.bz2 |
glsl: Use typed foreach_in_list_safe instead of foreach_list_safe.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/opt_function_inlining.cpp')
-rw-r--r-- | src/glsl/opt_function_inlining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/opt_function_inlining.cpp b/src/glsl/opt_function_inlining.cpp index 7212123..b84bb8e 100644 --- a/src/glsl/opt_function_inlining.cpp +++ b/src/glsl/opt_function_inlining.cpp @@ -341,8 +341,7 @@ ir_variable_replacement_visitor::visit_leave(ir_dereference_record *ir) ir_visitor_status ir_variable_replacement_visitor::visit_leave(ir_call *ir) { - foreach_list_safe(n, &ir->actual_parameters) { - ir_rvalue *param = (ir_rvalue *) n; + foreach_in_list_safe(ir_rvalue, param, &ir->actual_parameters) { ir_rvalue *new_param = param; replace_rvalue(&new_param); |