catch DECLARATOR / SPECIFIER abuse
[fw/sdcc] / src / SDCCicode.c
index 32f913aec7f0a10e33a7ac3013399320ebd9f20a..49d1aaa414046272d4052e3751999912683df3c8 100644 (file)
@@ -2118,7 +2118,7 @@ aggrToPtr (sym_link * type, bool force)
     return type;
 
   etype = getSpec (type);
-  ptype = newLink ();
+  ptype = newLink (DECLARATOR);
 
   ptype->next = type;
 
@@ -2451,8 +2451,7 @@ geniCodeAddressOf (operand * op)
 /*  return op; */
 /*     } */
 
-  p = newLink ();
-  p->class = DECLARATOR;
+  p = newLink (DECLARATOR);
 
 #ifdef JWK
   /* set the pointer depending on the storage class */