mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
ir_visit_tree: Make sure we visit dereference targets, too.
Found this with the local dead code pass, which never saw variable dereferences occurring.
This commit is contained in:
parent
aef0aaee67
commit
dc1dbd65e1
1 changed files with 1 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ ir_tree_visitor::visit(ir_dereference *ir)
|
|||
if (ir->mode == ir_dereference::ir_reference_array) {
|
||||
ir->selector.array_index->accept(this);
|
||||
}
|
||||
ir->var->accept(this);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue