[cfe-commits] r78395 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Anders Carlsson
andersca at mac.com
Fri Aug 7 11:45:49 PDT 2009
Author: andersca
Date: Fri Aug 7 13:45:49 2009
New Revision: 78395
URL: http://llvm.org/viewvc/llvm-project?rev=78395&view=rev
Log:
Use the correct cast kind as suggested by Doug.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=78395&r1=78394&r2=78395&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Aug 7 13:45:49 2009
@@ -2001,7 +2001,8 @@
From->getSourceRange()))
return true;
- ImpCastExprToType(From, DestType, CastExpr::CK_Unknown, /*isLvalue=*/true);
+ ImpCastExprToType(From, DestType, CastExpr::CK_DerivedToBase,
+ /*isLvalue=*/true);
return false;
}
More information about the cfe-commits
mailing list