]> granicus.if.org Git - clang/commit
Enter the cleanups for a block outside the enclosing
authorJohn McCall <rjmccall@apple.com>
Thu, 10 Nov 2011 08:15:53 +0000 (08:15 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 10 Nov 2011 08:15:53 +0000 (08:15 +0000)
commit1a343ebbf413e8eae6b2737b2b2d79cbf5765571
treef19088ff715fded786ec81b96a04bcceadff0b12
parent180f47959a066795cc0f409433023af448bb0328
Enter the cleanups for a block outside the enclosing
full-expression.  Naturally they're inactive before we enter
the block literal expression.  This restores the intended
behavior that blocks belong to their enclosing scope.

There's a useful -O0 / compile-time optimization that we're
missing here with activating cleanups following straight-line
code from their inactive beginnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144268 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGBlocks.h
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGTemporaries.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenObjC/arc-blocks.m
test/CodeGenObjC/arc-foreach.m