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 | 3385fe12ce1f25d58e069d04b06476d14d9aa0c8 (patch) | |
tree | a1ad0835c7a428830b800d6e9414494881ad2b22 /clang/lib/CodeGen | |
parent | fb23a968ad09fee98d62b15bbf5702ff696053c1 (diff) | |
download | bcm5719-llvm-3385fe12ce1f25d58e069d04b06476d14d9aa0c8.tar.gz bcm5719-llvm-3385fe12ce1f25d58e069d04b06476d14d9aa0c8.zip |
improve compatibility with the VC++'08 C++ compiler. Patch by
Niklas Larsson!
llvm-svn: 65706
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 12 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 2833b7ecb0b..696f889b634 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/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; diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index f2a08b1c5c0..6e435723829 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -279,7 +279,7 @@ public: : BlockLiteralTy(blt), Name(n) {} }; - llvm::Function *GenerateBlockFunction(const BlockExpr *Expr, + llvm::Function *GenerateBlockFunction(const BlockExpr *BExpr, const BlockInfo& Info, uint64_t &Size, uint64_t &Align, llvm::SmallVector<const Expr *, 8> &subBlockDeclRefDecls); |