From: Eric Anholt Date: Wed, 5 May 2010 18:07:21 +0000 (-0700) Subject: ir_visit_tree: Make sure we visit dereference targets, too. X-Git-Tag: 062012170305~10660^2~625^2~279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc1dbd65e1099d98a05302e4ee67bc84c59a1386;p=profile%2Fivi%2Fmesa.git ir_visit_tree: Make sure we visit dereference targets, too. Found this with the local dead code pass, which never saw variable dereferences occurring. --- diff --git a/ir_visit_tree.cpp b/ir_visit_tree.cpp index 89def6a..b94c1b0 100644 --- a/ir_visit_tree.cpp +++ b/ir_visit_tree.cpp @@ -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