diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-07 22:21:05 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-07 22:21:05 +0000 |
commit | cdb61979755c1c0699c1ee25eede9a50bf94d29b (patch) | |
tree | 78e00601af867a118e51bf175c31ac60001a1226 /lib/Sema/SemaExprCXX.cpp | |
parent | 6ff0785f1e58fb2cfb702d2995d076c6648a9a13 (diff) |
More CastKind work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 5b74938191..8a352c4ee2 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -203,12 +203,12 @@ Sema::ActOnCXXTypeConstructExpr(SourceRange TypeRange, TypeTy *TypeRep, // corresponding cast expression. // if (NumExprs == 1) { - if (CheckCastTypes(TypeRange, Ty, Exprs[0], /*functional-style*/true)) + CastExpr::CastKind Kind = CastExpr::CK_Unknown; + if (CheckCastTypes(TypeRange, Ty, Exprs[0], Kind, /*functional-style*/true)) return ExprError(); exprs.release(); return Owned(new (Context) CXXFunctionalCastExpr(Ty.getNonReferenceType(), - Ty, TyBeginLoc, - CastExpr::CK_Unknown, + Ty, TyBeginLoc, Kind, Exprs[0], RParenLoc)); } |