diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2013-11-22 02:10:15 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-01-13 11:38:19 -0800 |
commit | 838a6871bbcd8cd0493bb39b188129f7d49de47e (patch) | |
tree | 78a442fbc3ee72f5e13d2130d8aee34cfd9b97b7 /src/glsl/ir.cpp | |
parent | 5f7e778fa1b1e969a1b15e3650dec49b0026ed08 (diff) | |
download | external_mesa3d-838a6871bbcd8cd0493bb39b188129f7d49de47e.zip external_mesa3d-838a6871bbcd8cd0493bb39b188129f7d49de47e.tar.gz external_mesa3d-838a6871bbcd8cd0493bb39b188129f7d49de47e.tar.bz2 |
glsl: Convert piles of foreach_iter to foreach_list_safe.
In these cases, we edit the list (or at least might be), so we use the
foreach_list_safe variant.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 720fcdc..6ffa987 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1717,8 +1717,8 @@ ir_rvalue::error_value(void *mem_ctx) void visit_exec_list(exec_list *list, ir_visitor *visitor) { - foreach_iter(exec_list_iterator, iter, *list) { - ((ir_instruction *)iter.get())->accept(visitor); + foreach_list_safe(n, list) { + ((ir_instruction *) n)->accept(visitor); } } |