Skip to content

Commit

Permalink
fix Issue 13599 - [D1] backend/cod1.c ICE with -inline
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Oct 13, 2014
1 parent 5fc77df commit b54f5c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/statement.c
Expand Up @@ -887,6 +887,14 @@ Statement *ScopeStatement::syntaxCopy()
}


ReturnStatement *ScopeStatement::isReturnStatement()
{
if (statement)
return statement->isReturnStatement();
return NULL;
}


Statement *ScopeStatement::semantic(Scope *sc)
{ ScopeDsymbol *sym;

Expand Down
1 change: 1 addition & 0 deletions src/statement.h
Expand Up @@ -249,6 +249,7 @@ struct ScopeStatement : Statement
Statement *syntaxCopy();
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
ScopeStatement *isScopeStatement() { return this; }
ReturnStatement *isReturnStatement();
Statement *semantic(Scope *sc);
bool hasBreak();
bool hasContinue();
Expand Down

0 comments on commit b54f5c3

Please sign in to comment.