From a076d14514200507ba381bada8e23adf5e6ba17d Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 31 Jul 2009 01:23:52 +0000 Subject: Add CK_DerivedToBase and use it PerformObjectMemberConversion. llvm-svn: 77652 --- clang/lib/Sema/SemaDeclCXX.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Sema/SemaDeclCXX.cpp') diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index b095eb7f0a1..eedbdcefc61 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -2727,7 +2727,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType, // Perform the conversion. // FIXME: Binding to a subobject of the lvalue is going to require more // AST annotation than this. - ImpCastExprToType(Init, T1, /*isLvalue=*/true); + ImpCastExprToType(Init, T1, CastExpr::CK_Unknown, /*isLvalue=*/true); } } @@ -2786,7 +2786,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType, // Perform the conversion. // FIXME: Binding to a subobject of the lvalue is going to require more // AST annotation than this. - ImpCastExprToType(Init, T1, /*isLvalue=*/true); + ImpCastExprToType(Init, T1, CastExpr::CK_Unknown, /*isLvalue=*/true); } break; @@ -2874,7 +2874,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType, } else { // FIXME: Binding to a subobject of the rvalue is going to require more // AST annotation than this. - ImpCastExprToType(Init, T1, /*isLvalue=*/false); + ImpCastExprToType(Init, T1, CastExpr::CK_Unknown, /*isLvalue=*/false); } return false; } -- cgit v1.2.3