]> granicus.if.org Git - clang/commitdiff
tidy up
authorChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2011 00:18:06 +0000 (00:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2011 00:18:06 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126595 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Stmt.cpp

index 8a80275aa1657f3ee85fbd629ab7b8295ea978e6..6c353192785722cd8574a32cc048c194e304a6c4 100644 (file)
@@ -628,14 +628,14 @@ void SwitchStmt::setConditionVariable(ASTContext &C, VarDecl *V) {
 }
 
 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;