diff options
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 20398d463c..efb4e98e2d 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -825,7 +825,7 @@ llvm::Constant *BlockFunction::GeneratebyrefDestroyHelperFunction() { FunctionDecl::Static, false, true); CGF.StartFunction(FD, R, Fn, Args, SourceLocation()); - // EmitStmt(BExpr->getBody()); + // BuildBlockRelease(Src, flag); CGF.FinishFunction(); return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty); @@ -853,7 +853,7 @@ llvm::Value *BlockFunction::getBlockObjectDispose() { return CGM.BlockObjectDispose; } -void BlockFunction::BuildBlockRelease(const VarDecl &D, llvm::Value *DeclPtr) { +void BlockFunction::BuildBlockRelease(llvm::Value *DeclPtr) { llvm::Value *F = getBlockObjectDispose(); llvm::Value *N, *V; V = Builder.CreateStructGEP(DeclPtr, 1, "forwarding"); |