From: Chris Lattner Date: Mon, 28 Feb 2011 00:18:06 +0000 (+0000) Subject: tidy up X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4002c7e725aec26f2c7bd04fce02595f8e2bb45;p=clang tidy up git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126595 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 8a80275aa1..6c35319278 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -628,14 +628,14 @@ void SwitchStmt::setConditionVariable(ASTContext &C, VarDecl *V) { } Stmt *SwitchCase::getSubStmt() { - if (isa(this)) return cast(this)->getSubStmt(); + if (isa(this)) + return cast(this)->getSubStmt(); return cast(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(cond); SubExprs[BODY] = body;