projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f898a
)
glsl: Use insert_before for lists instead of open coding it
author
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 8 Mar 2011 19:43:52 +0000
(11:43 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 8 Mar 2011 19:47:25 +0000
(11:47 -0800)
src/glsl/opt_function_inlining.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/opt_function_inlining.cpp
b/src/glsl/opt_function_inlining.cpp
index 064089a9f77a2c358604c908341b96e5f6224b62..8fef358cc97b102c68d007bbdc5dcf348d632d69 100644
(file)
--- 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.