From c0309cd3d1f645f235245085827f33adecf1ff50 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 17 Feb 2010 18:10:54 +0000 Subject: Use proper lexcial context for newly added ivars. llvm-svn: 96484 --- clang/lib/CodeGen/CGBlocks.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CGBlocks.cpp') diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 46b62441d6e..26374af03a9 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -110,6 +110,7 @@ static bool CanBlockBeGlobal(const CodeGenFunction::BlockInfo &Info) { /// invoke function. static void AllocateAllBlockDeclRefs(const CodeGenFunction::BlockInfo &Info, CodeGenFunction *CGF) { +#if 0 // Always allocate self, as it is often handy in the debugger, even if there // is no codegen in the block that uses it. This is also useful to always do // this as if we didn't, we'd have to figure out all code that uses a self @@ -122,6 +123,7 @@ static void AllocateAllBlockDeclRefs(const CodeGenFunction::BlockInfo &Info, SelfDecl->getType(), SourceLocation(), false); CGF->AllocateBlockDecl(BDRE); } +#endif // FIXME: Also always forward the this pointer in C++ as well. -- cgit v1.2.3