[cfe-commits] r168293 - /cfe/trunk/lib/Sema/SemaStmt.cpp

Dmitri Gribenko gribozavr at gmail.com
Sun Nov 18 14:28:42 PST 2012


Author: gribozavr
Date: Sun Nov 18 16:28:42 2012
New Revision: 168293

URL: http://llvm.org/viewvc/llvm-project?rev=168293&view=rev
Log:
Remove redundant (duplicated) check.

Modified:
    cfe/trunk/lib/Sema/SemaStmt.cpp

Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=168293&r1=168292&r2=168293&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Sun Nov 18 16:28:42 2012
@@ -1149,7 +1149,7 @@
   assert(Cond && "ActOnDoStmt(): missing expression");
 
   ExprResult CondResult = CheckBooleanCondition(Cond, DoLoc);
-  if (CondResult.isInvalid() || CondResult.isInvalid())
+  if (CondResult.isInvalid())
     return StmtError();
   Cond = CondResult.take();
 





More information about the cfe-commits mailing list