Fixed address of array
[fw/sdcc] / src / SDCCicode.c
index 2a6faf9652d2bb8008c91a108d7246eee54464db..1d1e48a8097631989fa9d854779cd5eb42b2b3b3 100644 (file)
@@ -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 ;