[llvm-commits] [llvm-gcc-4.2] r74609 - /llvm-gcc-4.2/trunk/gcc/cp/parser.c
Stuart Hastings
stuart at apple.com
Wed Jul 1 08:38:07 PDT 2009
Author: stuart
Date: Wed Jul 1 10:37:47 2009
New Revision: 74609
URL: http://llvm.org/viewvc/llvm-project?rev=74609&view=rev
Log:
For blocks: the presence of byref variables requires that the
__block_holder_tmp be allocated on the stack.
Modified:
llvm-gcc-4.2/trunk/gcc/cp/parser.c
Modified: llvm-gcc-4.2/trunk/gcc/cp/parser.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/cp/parser.c?rev=74609&r1=74608&r2=74609&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/cp/parser.c (original)
+++ llvm-gcc-4.2/trunk/gcc/cp/parser.c Wed Jul 1 10:37:47 2009
@@ -21060,18 +21060,13 @@
CONSTRUCTOR_ELTS (constructor) = build_block_struct_initlist (block_struct_type,
block_impl);
/* Temporary representing a global block is made global static. */
- /* APPLE LOCAL radar 6230297 */
+ /* APPLE LOCAL begin radar 6230297 */
if (staticBlockTmp || global_bindings_p ()) {
TREE_PUBLIC (block_holder_tmp_decl) = 0;
TREE_STATIC (block_holder_tmp_decl) = 1;
}
+ /* APPLE LOCAL end radar 6230297 */
cp_finish_decl (block_holder_tmp_decl, constructor, 0, 0, LOOKUP_ONLYCONVERTING);
- /* LLVM LOCAL begin radar 5865221 */
-#ifdef ENABLE_LLVM
- TREE_CONSTANT (block_holder_tmp_decl) = 1;
- TREE_READONLY (block_holder_tmp_decl) = 1;
-#endif
- /* LLVM LOCAL end radar 5865221 */
return block_holder_tmp_decl;
}
/* APPLE LOCAL end radar 6169527 */
More information about the llvm-commits
mailing list