Remove extra arg.

llvm-svn: 66243
This commit is contained in:
Mike Stump 2009-03-06 02:45:21 +00:00
parent 1424861a62
commit 846bf9a797
3 changed files with 4 additions and 4 deletions

View 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");

View 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())

View 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);
}
}