[cfe-commits] r126595 - /cfe/trunk/lib/AST/Stmt.cpp

Chris Lattner sabre at nondot.org
Sun Feb 27 16:18:06 PST 2011


Author: lattner
Date: Sun Feb 27 18:18:06 2011
New Revision: 126595

URL: http://llvm.org/viewvc/llvm-project?rev=126595&view=rev
Log:
tidy up

Modified:
    cfe/trunk/lib/AST/Stmt.cpp

Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=126595&r1=126594&r2=126595&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Sun Feb 27 18:18:06 2011
@@ -628,14 +628,14 @@
 }
 
 Stmt *SwitchCase::getSubStmt() {
-  if (isa<CaseStmt>(this)) return cast<CaseStmt>(this)->getSubStmt();
+  if (isa<CaseStmt>(this))
+    return cast<CaseStmt>(this)->getSubStmt();
   return cast<DefaultStmt>(this)->getSubStmt();
 }
 
 WhileStmt::WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body, 
                      SourceLocation WL)
-: Stmt(WhileStmtClass)
-{
+  : Stmt(WhileStmtClass) {
   setConditionVariable(C, Var);
   SubExprs[COND] = reinterpret_cast<Stmt*>(cond);
   SubExprs[BODY] = body;





More information about the cfe-commits mailing list