aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-03-06 02:45:21 +0000
committerMike Stump <mrs@apple.com>2009-03-06 02:45:21 +0000
commit416d92ef0b8ad96ab679de7856bdb55c5f31d814 (patch)
tree8e6b9736a03ff2b52a97c00b8bd41af85bd5f033
parent45031c08c608e548ac12caf0547f89574e994b96 (diff)
Remove extra arg.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66243 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGBlocks.cpp4
-rw-r--r--lib/CodeGen/CGBlocks.h2
-rw-r--r--lib/CodeGen/CGDecl.cpp2
3 files changed, 4 insertions, 4 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");
diff --git a/lib/CodeGen/CGBlocks.h b/lib/CodeGen/CGBlocks.h
index adcb4af0d1..a34e102216 100644
--- a/lib/CodeGen/CGBlocks.h
+++ b/lib/CodeGen/CGBlocks.h
@@ -170,7 +170,7 @@ public:
llvm::Constant *BuildbyrefDestroyHelper(int flag);
llvm::Value *getBlockObjectDispose();
- void BuildBlockRelease(const VarDecl &D, llvm::Value *DeclPtr);
+ void BuildBlockRelease(llvm::Value *DeclPtr);
bool BlockRequiresCopying(QualType Ty) {
if (Ty->isBlockPointerType())
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index a24802b285..e783c6018f 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -400,7 +400,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
if (needsDispose && CGM.getLangOptions().getGCMode() != LangOptions::GCOnly) {
CleanupScope scope(*this);
- BuildBlockRelease(D, DeclPtr);
+ BuildBlockRelease(DeclPtr);
}
}