summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-12-08 23:09:15 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-12-08 23:09:15 +0000
commit92ef5d75720c032808181133e4d7c5f82230237e (patch)
treea302fda73a147bf198ccfa80e3c2269ff130775c /lib/CodeGen/CGExprScalar.cpp
parentfead20c1de136b5a199a5cc4225f64be771452e4 (diff)
downloadclang-92ef5d75720c032808181133e4d7c5f82230237e.tar.gz
clang-92ef5d75720c032808181133e4d7c5f82230237e.tar.bz2
clang-92ef5d75720c032808181133e4d7c5f82230237e.tar.xz
More detailed analysis of typecast to an objective-c pointer
in objective-c++ mode without being too lenient. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 0ad139af4c..f19aa273d9 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -798,6 +798,7 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) {
//assert(0 && "Unknown cast kind!");
break;
+ case CastExpr::CK_AnyPointerToObjCPointerCast:
case CastExpr::CK_BitCast: {
Value *Src = Visit(const_cast<Expr*>(E));
return Builder.CreateBitCast(Src, ConvertType(DestTy));