From a26159261c3c18c0ea8ce413a4e2a69ecc80d49e Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 31 Jul 2009 00:48:10 +0000 Subject: Add a CastKind enum to CastExpr. Right now it's not used for much but it will be :) llvm-svn: 77650 --- clang/lib/Sema/SemaExprCXX.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/SemaExprCXX.cpp') diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index dc16dda9feb..8ff28405e8e 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -207,8 +207,9 @@ Sema::ActOnCXXTypeConstructExpr(SourceRange TypeRange, TypeTy *TypeRep, return ExprError(); exprs.release(); return Owned(new (Context) CXXFunctionalCastExpr(Ty.getNonReferenceType(), - Ty, TyBeginLoc, Exprs[0], - RParenLoc)); + Ty, TyBeginLoc, + CastExpr::CK_Unknown, + Exprs[0], RParenLoc)); } if (const RecordType *RT = Ty->getAs()) { -- cgit v1.2.3