Module: Mesa
Branch: 7.10
Commit: 310d85c4927e506fdc759fee20558e483a4d4848
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=310d85c4927e506fdc759fee20558e483a4d4848

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
(cherry picked from commit bdb6a6ef83af62f2eda692d91ee2476c3fd1ce3a)

---

 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 2c49935..53c2f82 100644
--- a/src/glsl/opt_function_inlining.cpp
+++ b/src/glsl/opt_function_inlining.cpp
@@ -208,10 +208,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

Reply via email to