commit b3cee02be5e427122cee8123813b96968b7443dd parent ceb693378a667c55cac26425d2bf01f3fed96c74 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 9 Jul 2014 11:31:58 +0200 Simplify stmtexp Diffstat:
M | cc1/stmt.c | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -45,9 +45,8 @@ label(char *s, char define) static void stmtexp(void) { - if (accept(';')) - return; - emitexp(expr()); + if (yytoken != ';') + emitexp(expr()); expect(';'); }