diff options
author | Ian Romanick <[email protected]> | 2011-03-08 11:43:52 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-03-08 11:47:25 -0800 |
commit | bdb6a6ef83af62f2eda692d91ee2476c3fd1ce3a (patch) | |
tree | fb3ed7298352dc3d3363029da9d037bf228867de /src/glsl/opt_function_inlining.cpp | |
parent | 60f898a90ebd29d2593866faa1f2d6f65961a414 (diff) |
glsl: Use insert_before for lists instead of open coding it
Diffstat (limited to 'src/glsl/opt_function_inlining.cpp')
-rw-r--r-- | 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 064089a9f77..8fef358cc97 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. |