r184453 - Remove dead code.
Eli Friedman
eli.friedman at gmail.com
Thu Jun 20 11:53:21 PDT 2013
Author: efriedma
Date: Thu Jun 20 13:53:21 2013
New Revision: 184453
URL: http://llvm.org/viewvc/llvm-project?rev=184453&view=rev
Log:
Remove dead code.
Modified:
cfe/trunk/lib/Sema/SemaCast.cpp
Modified: cfe/trunk/lib/Sema/SemaCast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCast.cpp?rev=184453&r1=184452&r2=184453&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCast.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCast.cpp Thu Jun 20 13:53:21 2013
@@ -384,11 +384,6 @@ static bool tryDiagnoseOverloadedCast(Se
static void diagnoseBadCast(Sema &S, unsigned msg, CastType castType,
SourceRange opRange, Expr *src, QualType destType,
bool listInitialization) {
- if (src->getType() == S.Context.BoundMemberTy) {
- (void) S.CheckPlaceholderExpr(src); // will always fail
- return;
- }
-
if (msg == diag::err_bad_cxx_cast_generic &&
tryDiagnoseOverloadedCast(S, castType, opRange, src, destType,
listInitialization))
More information about the cfe-commits
mailing list