Use the correct cast kind as suggested by Doug.

llvm-svn: 78395
This commit is contained in:
Anders Carlsson 2009-08-07 18:45:49 +00:00
parent 2f7562c83e
commit 4f4aab2aeb
1 changed files with 2 additions and 1 deletions

View File

@ -2001,7 +2001,8 @@ Sema::PerformObjectArgumentInitialization(Expr *&From, CXXMethodDecl *Method) {
From->getSourceRange()))
return true;
ImpCastExprToType(From, DestType, CastExpr::CK_Unknown, /*isLvalue=*/true);
ImpCastExprToType(From, DestType, CastExpr::CK_DerivedToBase,
/*isLvalue=*/true);
return false;
}