]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 20 Jun 2013 18:53:21 +0000 (18:53 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 20 Jun 2013 18:53:21 +0000 (18:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCast.cpp

index dff06b7f0a24f9af1bec0c50811e653b2b8934b4..b59198c03f666ed49ca3a804ce171e63238f55d9 100644 (file)
@@ -384,11 +384,6 @@ static bool tryDiagnoseOverloadedCast(Sema &S, CastType CT,
 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))