зеркало из https://github.com/microsoft/clang-1.git
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
702e5474f5
Коммит
c4002c7e72
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче