]> granicus.if.org Git - clang/commit
During jump-scope checking, build an ExprWithCleanups immediately
authorJohn McCall <rjmccall@apple.com>
Tue, 25 Sep 2012 06:56:03 +0000 (06:56 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 25 Sep 2012 06:56:03 +0000 (06:56 +0000)
commit9f357de8d5823f9b13cf33ad1f6af1dd69b7669f
treeb6198a618237a3aedf5f3b3f454f7a78927a283b
parente49ff3ef3459e97fa76502bd9eae4ed9170fd048
During jump-scope checking, build an ExprWithCleanups immediately
into the enclosing scope;  this is a more accurate model but is
(I believe) unnecessary in my test case due to other flaws.
However, one of those flaws is now intentional:  blocks which
appear in return statements can be trivially observed to not
extend in lifetime past the return, and so we can allow a jump
past them.  Do the necessary magic in IR-generation to make
this work.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164589 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
lib/Sema/JumpDiagnostics.cpp
test/CodeGenCXX/exceptions.cpp
test/CodeGenObjC/arc-blocks.m