summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-28 00:18:06 +0000
committerChris Lattner <sabre@nondot.org>2011-02-28 00:18:06 +0000
commit80d51eb03a40922450db96b5ac96ebb4eea9d93b (patch)
tree03a1da20ec63f5162bb6aadb67a0986f195adeb9 /clang/lib
parent589b989713c0d8dc81d4a575e57f461176c56199 (diff)
downloadbcm5719-llvm-80d51eb03a40922450db96b5ac96ebb4eea9d93b.tar.gz
bcm5719-llvm-80d51eb03a40922450db96b5ac96ebb4eea9d93b.zip
tidy up
llvm-svn: 126595
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Stmt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 8a80275aa16..6c353192785 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/lib/AST/Stmt.cpp
@@ -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;
OpenPOWER on IntegriCloud