]> granicus.if.org Git - clang/commit
Allocate stack storage for .block_descriptor and captured self at -O0.
authorAdrian Prantl <aprantl@apple.com>
Thu, 14 Mar 2013 17:53:33 +0000 (17:53 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 14 Mar 2013 17:53:33 +0000 (17:53 +0000)
commit836e7c9357b312fd1ee5c90898ce2c81bb384997
tree74e423d21f912877da6b6330660592f06bfb0924
parent4a374f9a58a5b350ec2e4123b20c9884ed1f5f15
Allocate stack storage for .block_descriptor and captured self at -O0.
This way the register allocator will not optimize away the debug info
for captured variables.

Fixes rdar://problem/12767564

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177086 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/blocks.cpp
test/CodeGenObjC/debug-info-block-captured-self.m [new file with mode: 0644]