Skip to content

Commit

Permalink
Issue 7091 - ICE in Statement::blockExit
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Dec 10, 2011
1 parent 32c6dde commit d1d1f62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ Statement *CompileStatement::semantic(Scope *sc)
return s->semantic(sc);
}

int CompileStatement::blockExit(bool mustNotThrow)
{
assert(global.errors);
return BEfallthru;
}


/******************************** CompoundStatement ***************************/

Expand Down
1 change: 1 addition & 0 deletions src/statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ struct CompileStatement : Statement
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
Statements *flatten(Scope *sc);
Statement *semantic(Scope *sc);
int blockExit(bool mustNotThrow);
};

struct CompoundStatement : Statement
Expand Down

0 comments on commit d1d1f62

Please sign in to comment.