aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-14 22:16:35 +0000
committerMike Stump <mrs@apple.com>2009-02-14 22:16:35 +0000
commit67a6448a8d52ae46d1cba4e474f9f6b3968d2ff9 (patch)
tree14a831dcb5e300c620837596f17990fcd40ac9a0 /lib/CodeGen/CGExprScalar.cpp
parent3ab75bde6d8d2798a1f400b9335d359e25fb1765 (diff)
Generate the helper function for blocks. Now basic codegen is
starting to work for blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 164d57eb71..f5a1cf0525 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -1369,7 +1369,7 @@ Value *ScalarExprEmitter::VisitObjCEncodeExpr(const ObjCEncodeExpr *E) {
Value *ScalarExprEmitter::VisitBlockExpr(const BlockExpr *BE) {
- llvm::Constant *C = CGF.BuildBlockLiteralTmp();
+ llvm::Constant *C = CGF.BuildBlockLiteralTmp(BE);
const llvm::PointerType *PtrToInt8Ty
= llvm::PointerType::getUnqual(llvm::Type::Int8Ty);