Cleanup Catch clause

This commit is contained in:
Roberto Raggi
2009-11-10 15:15:51 +01:00
parent 380bce4527
commit 30c67f43df
7 changed files with 12 additions and 15 deletions

View File

@@ -273,8 +273,8 @@ bool CheckStatement::visit(SwitchStatementAST *ast)
bool CheckStatement::visit(TryBlockStatementAST *ast)
{
semantic()->check(ast->statement, _scope);
for (CatchClauseAST *c = ast->catch_clause_seq; c; c = c->next) {
semantic()->check(c, _scope);
for (CatchClauseListAST *it = ast->catch_clause_list; it; it = it->next) {
semantic()->check(it->value, _scope);
}
return false;
}