summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-19 12:04:39 -0700
committerJosh Stone <jistone@redhat.com>2010-03-19 12:04:39 -0700
commitfdba3aba0a17395abfe92afd1f739fc6a61c9266 (patch)
treeacdb0fa7ebcf62f6967b4920a2a7a40d7ea7d278 /staptree.h
parentacd96f2fcdeaf29554e58d428626ca864590d2b4 (diff)
downloadsystemtap-steved-fdba3aba0a17395abfe92afd1f739fc6a61c9266.tar.gz
systemtap-steved-fdba3aba0a17395abfe92afd1f739fc6a61c9266.tar.xz
systemtap-steved-fdba3aba0a17395abfe92afd1f739fc6a61c9266.zip
Let try_block contain any statement
We still require the block for parsing, but the optimizer likes to fold singleton blocks away, so any statement is possible. PR11341 masks such issues at compile time, but I'm a little surprised that we've gotten away with this at runtime...
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/staptree.h b/staptree.h
index 67349b8e..284b4ea1 100644
--- a/staptree.h
+++ b/staptree.h
@@ -529,8 +529,8 @@ struct block: public statement
struct try_block: public statement
{
- block* try_block; // may be 0
- block* catch_block; // may be 0
+ statement* try_block; // may be 0
+ statement* catch_block; // may be 0
symbol* catch_error_var; // may be 0
void print (std::ostream& o) const;
void visit (visitor* u);