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>
This commit is contained in:
@@ -224,8 +224,8 @@ ir_array_reference_visitor::get_split_list(exec_list *instructions,
|
||||
}
|
||||
|
||||
/* Trim out variables we found that we can't split. */
|
||||
foreach_iter(exec_list_iterator, iter, variable_list) {
|
||||
variable_entry *entry = (variable_entry *)iter.get();
|
||||
foreach_list_safe(n, &variable_list) {
|
||||
variable_entry *entry = (variable_entry *) n;
|
||||
|
||||
if (debug) {
|
||||
printf("array %s@%p: decl %d, split %d\n",
|
||||
|
||||
Reference in New Issue
Block a user