diff options
author | Matt Turner <[email protected]> | 2014-06-24 21:58:35 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-07-01 08:55:51 -0700 |
commit | c6a16f6d0e489e6d2a1a75bcf34be00e892b3120 (patch) | |
tree | 493e9bd86b9bad457bca713372c5c48718b6eaa0 /src/glsl/linker.cpp | |
parent | e0cb82d0c4ceba437c351d1e37fdb86fe5aed997 (diff) |
glsl: Use typed foreach_in_list_safe instead of foreach_list_safe.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 8bb1104961a..d588bc63ec4 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -1078,9 +1078,7 @@ move_non_declarations(exec_list *instructions, exec_node *last, temps = hash_table_ctor(0, hash_table_pointer_hash, hash_table_pointer_compare); - foreach_list_safe(node, instructions) { - ir_instruction *inst = (ir_instruction *) node; - + foreach_in_list_safe(ir_instruction, inst, instructions) { if (inst->as_function()) continue; |