From 1af1e62d9f67237277dd771a0cb78fa6b069742d Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 7 Apr 2010 16:41:41 -0700 Subject: Clean up and clarify semantic_error chaining I consolidated the copy-construction that every target_symbol::chain caller was doing. I also removed the comments that target_symbol errors might be chained due to function wildcards, because it's not true -- each derived instance gets a deep_copy of the probe body. However, @cast can still chain since it may try multiple modules to resolve the casting dereference. --- tapset-mark.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tapset-mark.cxx') diff --git a/tapset-mark.cxx b/tapset-mark.cxx index c672dc7a..6e8191d7 100644 --- a/tapset-mark.cxx +++ b/tapset-mark.cxx @@ -198,7 +198,7 @@ mark_var_expanding_visitor::visit_target_symbol (target_symbol* e) } catch (const semantic_error &er) { - e->chain (new semantic_error(er)); + e->chain (er); provide (e); } } -- cgit