diff options
author | Mike Stump <mrs@apple.com> | 2009-03-07 06:16:52 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-07 06:16:52 +0000 |
commit | 1ab20cae194fe236b6bc5dba448ea94e642d3c0f (patch) | |
tree | 58c8d6ec4eb87ed6eadb11e6fd33a46b5aa56afc /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 90d8daf5922b6ef88933a466cf064313a922e3f8 (diff) | |
download | bcm5719-llvm-1ab20cae194fe236b6bc5dba448ea94e642d3c0f.tar.gz bcm5719-llvm-1ab20cae194fe236b6bc5dba448ea94e642d3c0f.zip |
Remove last FIXME for block literal codegen that I know about and turn
on all the new code by default. There is still plenty of testing to
do and issues I'm sure need resolving. Let me know if you find
anything.
llvm-svn: 66323
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 4e4698273fc..9e3c4519cff 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -31,7 +31,7 @@ Enable__block("f__block", "even though the code isn't done yet"), llvm::cl::ValueDisallowed, llvm::cl::AllowInverse, llvm::cl::ZeroOrMore, - llvm::cl::init(false)); + llvm::cl::init(true)); llvm::Constant *CodeGenFunction:: BuildDescriptorBlockDecl(uint64_t Size, const llvm::StructType* Ty, @@ -479,7 +479,6 @@ llvm::Value *CodeGenFunction::GetAddrOfBlockDecl(const BlockDeclRefExpr *E) { const llvm::Type *Ty; Ty = CGM.getTypes().ConvertType(E->getDecl()->getType()); - // FIXME: add support for copy/dispose helpers. if (!Enable__block && E->isByRef()) ErrorUnsupported(E, "__block variable in block literal"); else if (!Enable__block && E->getType()->isBlockPointerType()) |