llvm-svn: 126595
This commit is contained in:
Chris Lattner 2011-02-28 00:18:06 +00:00
parent 589b989713
commit 80d51eb03a
1 changed files with 3 additions and 3 deletions

View 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;