Add a CK_BaseToDerived cast kind.

llvm-svn: 86994
This commit is contained in:
Anders Carlsson 2009-11-12 16:43:42 +00:00
parent 19ac2d6494
commit a70ad93f8a
2 changed files with 5 additions and 0 deletions

View File

@ -1519,6 +1519,9 @@ public:
/// CK_NoOp - Used for const_cast.
CK_NoOp,
/// CK_BaseToDerived - Base to derived class casts.
CK_BaseToDerived,
/// CK_DerivedToBase - Derived to base class casts.
CK_DerivedToBase,

View File

@ -490,6 +490,8 @@ const char *CastExpr::getCastKindName() const {
return "BitCast";
case CastExpr::CK_NoOp:
return "NoOp";
case CastExpr::CK_BaseToDerived:
return "BaseToDerived";
case CastExpr::CK_DerivedToBase:
return "DerivedToBase";
case CastExpr::CK_Dynamic: