shithub: scc

Download patch

ref: 2f1edab1b0ee2af6635bf41644eda6a25c4471c3
parent: 43a3b37a514e390199668bab42c3451901de5917
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Jan 18 12:28:22 EST 2016

Convert errors of chklvalue() into semantic

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

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -191,9 +191,9 @@
 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 *