diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-11 22:40:48 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-11 22:40:48 +0000 |
| commit | 3b27f1a80e4e433b503efd344c909eeafaa9033c (patch) | |
| tree | 43e9035128c7ba4217be1db5e2a63febd96eb966 /lib/CodeGen/CGExprScalar.cpp | |
| parent | 2108577809989bd5c591128b48aac6715b3f61b6 (diff) | |
| download | clang-3b27f1a80e4e433b503efd344c909eeafaa9033c.tar.gz clang-3b27f1a80e4e433b503efd344c909eeafaa9033c.tar.bz2 clang-3b27f1a80e4e433b503efd344c909eeafaa9033c.tar.xz | |
Patch to allow C-style cast from 'void *' to block pointer type.
(fixes radar 7465023).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 6f65638236..afb7a798ef 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -809,6 +809,7 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) { break; case CastExpr::CK_AnyPointerToObjCPointerCast: + case CastExpr::CK_AnyPointerToBlockPointerCast: case CastExpr::CK_BitCast: { Value *Src = Visit(const_cast<Expr*>(E)); return Builder.CreateBitCast(Src, ConvertType(DestTy)); |
