commit | f5533019fb70d62917fd080f6152b6469e2c6cd5 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Fri Jun 15 05:27:05 2012 +0000 |
committer | John McCall <rjmccall@apple.com> | Fri Jun 15 05:27:05 2012 +0000 |
tree | 7098a0486d3ef95bfbca83ee9e85a584940b4e53 | |
parent | d2e95d1538ff91fe902464f02f83429f96117af5 [diff] |
It turns out that implementing the rethrow-on-fallthrough semantics of a ctor/dtor function-try-block catch handler by pushing a normal cleanup is not just overkill but actually actively wrong when the handler contains an explicit return (which is only legal in a dtor). Just emit the rethrow as ordinary code at the fallthrough point. Fixes PR13102. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158488 91177308-0d34-0410-b5e6-96231b3b80d8