]> sourceware.org Git - systemtap.git/commit
elaborate: Don't catch semantic_error in blocks
authorJosh Stone <jistone@redhat.com>
Tue, 10 Jun 2014 20:15:02 +0000 (13:15 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 10 Jun 2014 20:30:23 +0000 (13:30 -0700)
commit1cda9c440df57dd24552d825f54fc95b2e0c1676
treeeb8684c076546d8e350dad8f7803525061b1b517
parenta2df943e69b5dd65665b06e65ffcec99573edf57
elaborate: Don't catch semantic_error in blocks

In typeresolution_info::visit_block(), we were catching and printing
semantic_errors, but this causes them to be repeated when type resolution
loops around again.  Instead let higher levels catch the error, where it
will end the iteration properly too.

This probably originated on the assumption that all probe and function code
is contained in a block statement, but with optimization that may not even
be true, so visit_block is really not the right place to catch errors.
elaborate.cxx
This page took 0.02639 seconds and 5 git commands to generate.