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:
Eric Anholt 2010-05-05 11:07:21 -07:00
parent aef0aaee67
commit dc1dbd65e1

View file

@ -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