diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-27 21:06:10 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-27 21:06:10 +0000 |
commit | 578faa837b552403e2002b97fdfbfde14f2448e5 (patch) | |
tree | 58fc359a5de70b3d4624867d56871384868aabcb /lib/CodeGen/CGBlocks.cpp | |
parent | 6479c664f0ea191e72224578b655d8846f919bef (diff) |
de-tmpify clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 1e9fae0aae..e0edae9dfa 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -727,9 +727,9 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr* E, Builder.CreateBitCast(Callee, BlockLiteralTy, "block.literal"); // Get the function pointer from the literal. - llvm::Value *FuncPtr = Builder.CreateStructGEP(BlockLiteral, 3, "tmp"); + llvm::Value *FuncPtr = Builder.CreateStructGEP(BlockLiteral, 3); - BlockLiteral = Builder.CreateBitCast(BlockLiteral, VoidPtrTy, "tmp"); + BlockLiteral = Builder.CreateBitCast(BlockLiteral, VoidPtrTy); // Add the block literal. CallArgList Args; @@ -742,7 +742,7 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr* E, E->arg_begin(), E->arg_end()); // Load the function. - llvm::Value *Func = Builder.CreateLoad(FuncPtr, "tmp"); + llvm::Value *Func = Builder.CreateLoad(FuncPtr); const FunctionType *FuncTy = FnType->castAs<FunctionType>(); const CGFunctionInfo &FnInfo = CGM.getTypes().getFunctionInfo(Args, FuncTy); |