diff options
author | Anders Carlsson <andersca@mac.com> | 2009-07-31 00:48:10 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-07-31 00:48:10 +0000 |
commit | cdef2b75aa60cde1ca00e0aa3f89139ac89c6ae4 (patch) | |
tree | 495c26d02b13cb3150354187e8c586b665e17387 /lib/Sema/SemaCXXCast.cpp | |
parent | 82ec2e99084996eecbdf3a304f3cbba8c16c2f6b (diff) |
Add a CastKind enum to CastExpr. Right now it's not used for much but it will be :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXCast.cpp')
-rw-r--r-- | lib/Sema/SemaCXXCast.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCXXCast.cpp index e1684ae40c..afe539cd46 100644 --- a/lib/Sema/SemaCXXCast.cpp +++ b/lib/Sema/SemaCXXCast.cpp @@ -123,7 +123,8 @@ Sema::ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, if (!TypeDependent) CheckDynamicCast(*this, Ex, DestType, OpRange, DestRange); return Owned(new (Context)CXXDynamicCastExpr(DestType.getNonReferenceType(), - Ex, DestType, OpLoc)); + CastExpr::CK_Unknown, Ex, + DestType, OpLoc)); case tok::kw_reinterpret_cast: if (!TypeDependent) @@ -136,7 +137,8 @@ Sema::ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, if (!TypeDependent) CheckStaticCast(*this, Ex, DestType, OpRange); return Owned(new (Context) CXXStaticCastExpr(DestType.getNonReferenceType(), - Ex, DestType, OpLoc)); + CastExpr::CK_Unknown, Ex, + DestType, OpLoc)); } return ExprError(); |