diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-19 12:04:39 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-19 12:04:39 -0700 |
commit | fdba3aba0a17395abfe92afd1f739fc6a61c9266 (patch) | |
tree | acdb0fa7ebcf62f6967b4920a2a7a40d7ea7d278 | |
parent | acd96f2fcdeaf29554e58d428626ca864590d2b4 (diff) | |
download | systemtap-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...
-rw-r--r-- | staptree.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |