mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
glsl: Use insert_before for lists instead of open coding it
(cherry picked from commit bdb6a6ef83)
This commit is contained in:
parent
55d86204f3
commit
310d85c492
1 changed files with 1 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue