scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit a1ec56af45b62704436f4f95ebc443cdf22383be
parent af4c86d6dc8ef1f1c89e63805f639bb044ba6d19
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  4 Sep 2015 18:46:28 +0200

Add error recovery in incdec()

Diffstat:
Mcc1/expr.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -468,7 +468,8 @@ incdec(Node *np, char op) inc = constnode(one); break; default: - error("incorrect type in arithmetic operation"); + errorp("wrong type argument to increment or decrement"); + return np; } return arithmetic(op, np, inc); }