diff options
Diffstat (limited to 'tapset-perfmon.cxx')
-rw-r--r-- | tapset-perfmon.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tapset-perfmon.cxx b/tapset-perfmon.cxx index e3f30ece..0fb567f7 100644 --- a/tapset-perfmon.cxx +++ b/tapset-perfmon.cxx @@ -64,6 +64,9 @@ perfmon_var_expanding_visitor::visit_target_symbol (target_symbol *e) if (e->base_name != "$counter") throw semantic_error ("target variables not available to perfmon probes"); + if (e->addressof) + throw semantic_error("cannot take address of perfmon variable", e->tok); + if (e->components.size() > 0) { switch (e->components[0].first) |