| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index 38c6dddf9495b1915c56f30bcc2d28cda7138312..873417119ccd197806f1ab86e632f202032f21fd 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -708,7 +708,9 @@ void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) {
|
|
|
| void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) {
|
| for (int i = 0; i < statements->length(); i++) {
|
| - Visit(statements->at(i));
|
| + Statement* stmt = statements->at(i);
|
| + Visit(stmt);
|
| + if (stmt->IsJump()) break;
|
| }
|
| }
|
|
|
|
|