summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-28 19:01:03 +0000
committerChris Lattner <sabre@nondot.org>2009-02-28 19:01:03 +0000
commit3385fe12ce1f25d58e069d04b06476d14d9aa0c8 (patch)
treea1ad0835c7a428830b800d6e9414494881ad2b22 /clang/lib/CodeGen/CGBlocks.cpp
parentfb23a968ad09fee98d62b15bbf5702ff696053c1 (diff)
downloadbcm5719-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/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp12
1 files changed, 6 insertions, 6 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;
OpenPOWER on IntegriCloud