diff options
author | Eric Anholt <eric@anholt.net> | 2010-05-05 11:07:21 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-05 11:08:18 -0700 |
commit | dc1dbd65e1099d98a05302e4ee67bc84c59a1386 (patch) | |
tree | 32c71300030478b8b1ef65021002278ab424d6d5 /ir_visit_tree.cpp | |
parent | aef0aaee675093ce2f494a139054b1bca94e9a43 (diff) |
ir_visit_tree: Make sure we visit dereference targets, too.
Found this with the local dead code pass, which never saw variable
dereferences occurring.
Diffstat (limited to 'ir_visit_tree.cpp')
-rw-r--r-- | ir_visit_tree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ir_visit_tree.cpp b/ir_visit_tree.cpp index 89def6a920..b94c1b0208 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 |