diff options
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx index 3015c796..2ad2d906 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -1375,6 +1375,13 @@ traversing_visitor::visit_target_symbol (target_symbol* e) void traversing_visitor::visit_arrayindex (arrayindex* e) { + symbol *array = NULL; + hist_op *hist = NULL; + classify_indexable(e->base, array, hist); + if (array) + return array->visit(this); + else + return hist->visit(this); for (unsigned i=0; i<e->indexes.size(); i++) e->indexes[i]->visit (this); } |