Skip to content

Commit

Permalink
add missing visitor for ErrorStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Mar 3, 2014
1 parent b83d6f5 commit 3968036
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hdrgen.c
Expand Up @@ -114,6 +114,12 @@ class PrettyPrintVisitor : public Visitor
assert(0);
}

void visit(ErrorStatement *s)
{
buf->printf("__error__");
buf->writenl();
}

void visit(ExpStatement *s)
{
if (s->exp)
Expand Down

0 comments on commit 3968036

Please sign in to comment.