ref: b3cee02be5e427122cee8123813b96968b7443dd
parent: ceb693378a667c55cac26425d2bf01f3fed96c74
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Jul 9 07:31:58 EDT 2014
Simplify stmtexp
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -45,9 +45,8 @@
static void
stmtexp(void)
{
- if (accept(';'))
- return;
- emitexp(expr());
+ if (yytoken != ';')
+ emitexp(expr());
expect(';');
}