mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Insure that __block_holder_tmp is allocated on the stack when a byref
variable is present. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93696a38b7
commit
75657ab707
8
test/FrontendC++/2009-06-30-ByrefBlock.cpp
Normal file
8
test/FrontendC++/2009-06-30-ByrefBlock.cpp
Normal 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;});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user