diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-03-03 19:01:58 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-03-03 19:01:58 -0500 |
commit | c108ad66d2218a1311b8891f1194d08179ae7c19 (patch) | |
tree | 66b3e148a84447d69f1340447c5edba8bf2055cd /staptree.cxx | |
parent | 378f9227b04b876ff06af099715e7d60cdc49903 (diff) | |
parent | b0be9bdb8c6972d847cad50a1e699f1fa806ad99 (diff) | |
download | systemtap-steved-c108ad66d2218a1311b8891f1194d08179ae7c19.tar.gz systemtap-steved-c108ad66d2218a1311b8891f1194d08179ae7c19.tar.xz systemtap-steved-c108ad66d2218a1311b8891f1194d08179ae7c19.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx index 63c1fcf7..778691f4 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -1644,6 +1644,17 @@ varuse_collecting_visitor::visit_embeddedcode (embeddedcode *s) embedded_seen = true; } +void +varuse_collecting_visitor::visit_target_symbol (target_symbol *e) +{ + // Still-unresolved target symbol assignments get treated as + // generating side-effects like embedded-C, to prevent premature + // elision and later error message suppression (PR5516). rvalue use + // of unresolved target symbols is OTOH not considered a side-effect. + + if (is_active_lvalue (e)) + embedded_seen = true; +} void varuse_collecting_visitor::visit_print_format (print_format* e) |