зеркало из https://github.com/microsoft/clang.git
Remove extra arg.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
45031c08c6
Коммит
416d92ef0b
|
@ -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");
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче