summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-08-01 13:36:12 -0700
committerIan Romanick <ian.d.romanick@intel.com>2011-08-15 11:44:26 -0700
commit13df36ecb6c24ea36534fa0dfea917aca8233710 (patch)
tree91a40a0efd6bab929ec561aa4a60abb97b44043d /src/glsl
parent5c843785417225ba582878a15a5ae13b7b961aaa (diff)
glsl: Replace foreach_iter with foreach_list_safe
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/lower_if_to_cond_assign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/lower_if_to_cond_assign.cpp b/src/glsl/lower_if_to_cond_assign.cpp
index 2d447e043a5..5c74bc1816c 100644
--- a/src/glsl/lower_if_to_cond_assign.cpp
+++ b/src/glsl/lower_if_to_cond_assign.cpp
@@ -97,8 +97,8 @@ move_block_to_cond_assign(void *mem_ctx,
ir_if *if_ir, ir_rvalue *cond_expr,
exec_list *instructions)
{
- foreach_iter(exec_list_iterator, iter, *instructions) {
- ir_instruction *ir = (ir_instruction *)iter.get();
+ foreach_list_safe(node, instructions) {
+ ir_instruction *ir = (ir_instruction *) node;
if (ir->ir_type == ir_type_assignment) {
ir_assignment *assign = (ir_assignment *)ir;