Mesa (master): glsl: Replace foreach_iter with foreach_list_safe

Ian Romanick idr at kemper.freedesktop.org
Mon Aug 15 11:44:59 PDT 2011


Module: Mesa
Branch: master
Commit: 13df36ecb6c24ea36534fa0dfea917aca8233710
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=13df36ecb6c24ea36534fa0dfea917aca8233710

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Aug  1 13:36:12 2011 -0700

glsl: Replace foreach_iter with foreach_list_safe

Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/glsl/lower_if_to_cond_assign.cpp |    4 ++--
 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 2d447e0..5c74bc1 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;



More information about the mesa-commit mailing list