diff options
author | Mike Stump <mrs@apple.com> | 2009-02-19 01:01:04 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-19 01:01:04 +0000 |
commit | bd65cac8de63d108a681035782a71d42954b03ab (patch) | |
tree | 24940ea04c00270874f9be9f9dfbf3a377d94346 /lib/CodeGen/CGExprScalar.cpp | |
parent | 611a8c49c6a5848aed17eced8f2f3f7b1b7577a1 (diff) |
More codegen for blocks. The type of block literals should be better.
The size calculation is improved.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 4b185f6101..eb13457372 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1364,10 +1364,7 @@ Value *ScalarExprEmitter::VisitObjCEncodeExpr(const ObjCEncodeExpr *E) { Value *ScalarExprEmitter::VisitBlockExpr(const BlockExpr *BE) { llvm::Constant *C = CGF.BuildBlockLiteralTmp(BE); - - const llvm::PointerType *PtrToInt8Ty - = llvm::PointerType::getUnqual(llvm::Type::Int8Ty); - return llvm::ConstantExpr::getBitCast(C, PtrToInt8Ty); + return C; } //===----------------------------------------------------------------------===// |