summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-03-30 23:58:03 +0000
committerJohn McCall <rjmccall@apple.com>2010-03-30 23:58:03 +0000
commitd9c7c6568e17e3bdc7006da3253eb2900a70ec3f (patch)
treea866ba628ca57eba03330d2f1efa9258512bce2b /clang/lib/AST/Expr.cpp
parent4d2972d7939f51b1380bce918effceabe0da15ea (diff)
downloadbcm5719-llvm-d9c7c6568e17e3bdc7006da3253eb2900a70ec3f.tar.gz
bcm5719-llvm-d9c7c6568e17e3bdc7006da3253eb2900a70ec3f.zip
Introduce a new kind of derived-to-base cast which bypasses the need for
null checks, and make sure we elide null checks when accessing base class members. llvm-svn: 99963
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index a9b5f36a983..4cb7712e52c 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -552,6 +552,8 @@ const char *CastExpr::getCastKindName() const {
return "BaseToDerived";
case CastExpr::CK_DerivedToBase:
return "DerivedToBase";
+ case CastExpr::CK_UncheckedDerivedToBase:
+ return "UncheckedDerivedToBase";
case CastExpr::CK_Dynamic:
return "Dynamic";
case CastExpr::CK_ToUnion:
OpenPOWER on IntegriCloud