]> granicus.if.org Git - clang/commitdiff
Unnecessary else
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 29 Sep 2011 04:06:47 +0000 (04:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 29 Sep 2011 04:06:47 +0000 (04:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140775 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaChecking.cpp

index 9b13c72d1f2cac407bd6f0891823bb302e541f1f..c29ffb5368baff6d9e00d6f51afd72e549bc206e 100644 (file)
@@ -3245,8 +3245,7 @@ void CheckImplicitConversion(Sema &S, Expr *E, QualType T,
       // by a check in AnalyzeImplicitConversions().
       return DiagnoseImpCast(S, E, T, CC,
                              diag::warn_impcast_string_literal_to_bool);
-    else // Other casts to bool are not checked.
-      return;
+    return; // Other casts to bool are not checked.
   }
 
   // Strip vector types.