]> granicus.if.org Git - clang/commitdiff
Remove extra arg.
authorMike Stump <mrs@apple.com>
Fri, 6 Mar 2009 02:45:21 +0000 (02:45 +0000)
committerMike Stump <mrs@apple.com>
Fri, 6 Mar 2009 02:45:21 +0000 (02:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66243 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGBlocks.h
lib/CodeGen/CGDecl.cpp

index 20398d463cf8ab08c38e1f7b037b586f6ff8e31c..efb4e98e2d877eba2b9b6909c7e4e7102021bac2 100644 (file)
@@ -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");
index adcb4af0d1f71121d3e87a64e41f4be7caaede4f..a34e10221698c79c0a26f4a6b73d80af60e5c6b4 100644 (file)
@@ -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())
index a24802b285c8140b98f13f46c9c52c8e92c774c1..e783c6018f8b4494b694992f3f3cd4f434ba0ba8 100644 (file)
@@ -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);
   }
 }