Re: [Mesa-dev] [PATCH 09/11] glsl: Use foreach_list in lower_jumps.cpp

2011-07-07 Thread Kenneth Graunke
On 07/05/2011 03:07 PM, Paul Berry wrote: The visitor class in lower_jumps.cpp never removes or replaces the instruction being visited, but it frequently alters or removes the instructions that follow it. Therefore, in order to be safe, it needs to iterate through exec_lists using foreach_list r

[Mesa-dev] [PATCH 09/11] glsl: Use foreach_list in lower_jumps.cpp

2011-07-05 Thread Paul Berry
The visitor class in lower_jumps.cpp never removes or replaces the instruction being visited, but it frequently alters or removes the instructions that follow it. Therefore, in order to be safe, it needs to iterate through exec_lists using foreach_list rather than visit_exec_list(). Without this