diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-28 19:01:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-28 19:01:03 +0000 |
commit | 161d36de7ee686b09525bb919ad1b20592e499fc (patch) | |
tree | 7e074c0ac2069ba5984be3ffa5cefa18570ee065 /lib/CodeGen/CGBlocks.cpp | |
parent | ab775f62eab83f06ed972e573599031719ae2a9f (diff) |
improve compatibility with the VC++'08 C++ compiler. Patch by
Niklas Larsson!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 2833b7ecb0..696f889b63 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -472,17 +472,17 @@ llvm::Value *CodeGenFunction::LoadBlockStruct() { return Builder.CreateLoad(LocalDeclMap[getBlockStructDecl()], "self"); } -llvm::Function *CodeGenFunction::GenerateBlockFunction(const BlockExpr *Expr, +llvm::Function *CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr, const BlockInfo& Info, uint64_t &Size, uint64_t &Align, llvm::SmallVector<const Expr *, 8> &subBlockDeclRefDecls) { const FunctionProtoType *FTy = - cast<FunctionProtoType>(Expr->getFunctionType()); + cast<FunctionProtoType>(BExpr->getFunctionType()); FunctionArgList Args; - const BlockDecl *BD = Expr->getBlockDecl(); + const BlockDecl *BD = BExpr->getBlockDecl(); // FIXME: This leaks ImplicitParamDecl *SelfDecl = @@ -510,9 +510,9 @@ llvm::Function *CodeGenFunction::GenerateBlockFunction(const BlockExpr *Expr, &CGM.getModule()); StartFunction(BD, FTy->getResultType(), Fn, Args, - Expr->getBody()->getLocEnd()); - EmitStmt(Expr->getBody()); - FinishFunction(cast<CompoundStmt>(Expr->getBody())->getRBracLoc()); + BExpr->getBody()->getLocEnd()); + EmitStmt(BExpr->getBody()); + FinishFunction(cast<CompoundStmt>(BExpr->getBody())->getRBracLoc()); // The runtime needs a minimum alignment of a void *. uint64_t MinAlign = getContext().getTypeAlign(getContext().VoidPtrTy) / 8; |