scc

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

commit 2f1edab1b0ee2af6635bf41644eda6a25c4471c3
parent 43a3b37a514e390199668bab42c3451901de5917
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 18 Jan 2016 17:28:22 +0100

Convert errors of chklvalue() into semantic

In this case we can continue without problems (I hope).

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

diff --git a/cc1/expr.c b/cc1/expr.c @@ -191,9 +191,9 @@ static void chklvalue(Node *np) { if (!np->lvalue) - error("lvalue required in operation"); + errorp("lvalue required in operation"); if (np->type == voidtype) - error("invalid use of void expression"); + errorp("invalid use of void expression"); } Node *