diff options
Diffstat (limited to 'ir_function_inlining.cpp')
-rw-r--r-- | ir_function_inlining.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ir_function_inlining.cpp b/ir_function_inlining.cpp index e674d16..f47d758 100644 --- a/ir_function_inlining.cpp +++ b/ir_function_inlining.cpp @@ -509,11 +509,7 @@ ir_function_inlining_visitor::visit(ir_function *ir) void ir_function_inlining_visitor::visit(ir_expression *ir) { - unsigned int operand; - - for (operand = 0; operand < ir->get_num_operands(); operand++) { - ir->operands[operand]->accept(this); - } + ir->visit_children(this); } @@ -527,10 +523,7 @@ ir_function_inlining_visitor::visit(ir_swizzle *ir) void ir_function_inlining_visitor::visit(ir_dereference *ir) { - if (ir->mode == ir_dereference::ir_reference_array) { - ir->selector.array_index->accept(this); - } - ir->var->accept(this); + ir->visit_children(this); } void |