Insure that __block_holder_tmp is allocated on the stack when a byref

variable is present.

llvm-svn: 74610
This commit is contained in:
Stuart Hastings 2009-07-01 15:40:10 +00:00
parent b8f779db87
commit 67a2b76774
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// Insure __block_holder_tmp is allocated on the stack.
// RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
// <rdar://problem/5865221>
extern void fubar_dispatch_sync(void (^PP)(void));
void fubar() {
__block void *voodoo;
fubar_dispatch_sync(^(void){voodoo=0;});
}