diff options
author | Mike Stump <mrs@apple.com> | 2009-03-06 02:45:21 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-06 02:45:21 +0000 |
commit | 846bf9a797b5caeb8a0f6cd43454a2ced437d03a (patch) | |
tree | 46ac31eb1ac0070cfad9de14a7a82b788ec469eb /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 1424861a62accd8e873a82a9c26b3fed625bb2ef (diff) | |
download | bcm5719-llvm-846bf9a797b5caeb8a0f6cd43454a2ced437d03a.tar.gz bcm5719-llvm-846bf9a797b5caeb8a0f6cd43454a2ced437d03a.zip |
Remove extra arg.
llvm-svn: 66243
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 20398d463cf..efb4e98e2d8 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/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"); |