commit 7e3cb239304785b9a53e2e04709d34a7ad92815c
parent 121cea8b715ba2ca3a8c5abc4b330ded023a7cf8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 4 Sep 2015 20:19:49 +0200
Call chklvalue() in address()
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cc1/expr.c b/cc1/expr.c
@@ -465,8 +465,7 @@ incdec(Node *np, char op)
static Node *
address(char op, Node *np)
{
- if (!np->lvalue)
- error("lvalue required in unary expression");
+ chklvalue(np);
if (np->symbol && (np->sym->flags & ISREGISTER))
error("address of register variable '%s' requested", yytext);
if (np->op == OPTR) {