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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc1dbd65e1099d98a05302e4ee67bc84c59a1386;p=mesa.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 89def6a9205..b94c1b02087 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