From e26ab189b3c2cf17910fdf833b2cf8547d27934d Mon Sep 17 00:00:00 2001 From: sandeep Date: Tue, 14 Mar 2000 18:10:35 +0000 Subject: [PATCH] Fixed address of array git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@188 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCicode.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 2a6faf96..1d1e48a8 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -1926,11 +1926,12 @@ operand *geniCodeAddressOf (operand *op) link *optype = operandType(op); link *opetype= getSpec(optype); + /* lvalue check already done in decorateType */ /* this must be a lvalue */ - if (!op->isaddr && !IS_AGGREGATE(optype)) { - werror (E_LVALUE_REQUIRED,"&"); - return op; - } +/* if (!op->isaddr && !IS_AGGREGATE(optype)) { */ +/* werror (E_LVALUE_REQUIRED,"&"); */ +/* return op; */ +/* } */ p = newLink(); p->class = DECLARATOR ; -- 2.47.2