Module: Mesa Branch: master Commit: bdb6a6ef83af62f2eda692d91ee2476c3fd1ce3a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdb6a6ef83af62f2eda692d91ee2476c3fd1ce3a
Author: Ian Romanick <[email protected]> Date: Tue Mar 8 11:43:52 2011 -0800 glsl: Use insert_before for lists instead of open coding it --- src/glsl/opt_function_inlining.cpp | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/glsl/opt_function_inlining.cpp b/src/glsl/opt_function_inlining.cpp index 064089a..8fef358 100644 --- a/src/glsl/opt_function_inlining.cpp +++ b/src/glsl/opt_function_inlining.cpp @@ -209,10 +209,7 @@ ir_call::generate_inline(ir_instruction *next_ir) } /* Now push those new instructions in. */ - foreach_iter(exec_list_iterator, iter, new_instructions) { - ir_instruction *ir = (ir_instruction *)iter.get(); - next_ir->insert_before(ir); - } + next_ir->insert_before(&new_instructions); /* Copy back the value of any 'out' parameters from the function body * variables to our own. _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
