diff options
author | Matt Turner <[email protected]> | 2014-06-24 21:58:35 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-07-01 08:55:51 -0700 |
commit | c6a16f6d0e489e6d2a1a75bcf34be00e892b3120 (patch) | |
tree | 493e9bd86b9bad457bca713372c5c48718b6eaa0 /src/glsl/ir_hv_accept.cpp | |
parent | e0cb82d0c4ceba437c351d1e37fdb86fe5aed997 (diff) |
glsl: Use typed foreach_in_list_safe instead of foreach_list_safe.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_hv_accept.cpp')
-rw-r--r-- | src/glsl/ir_hv_accept.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/ir_hv_accept.cpp b/src/glsl/ir_hv_accept.cpp index 3ca7a58871a..be5b3eaa00d 100644 --- a/src/glsl/ir_hv_accept.cpp +++ b/src/glsl/ir_hv_accept.cpp @@ -49,8 +49,7 @@ visit_list_elements(ir_hierarchical_visitor *v, exec_list *l, { ir_instruction *prev_base_ir = v->base_ir; - foreach_list_safe(n, l) { - ir_instruction *const ir = (ir_instruction *) n; + foreach_in_list_safe(ir_instruction, ir, l) { if (statement_list) v->base_ir = ir; ir_visitor_status s = ir->accept(v); |