Fixed problem where the same slocs was shared between two operands
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 25 Nov 2001 23:29:25 +0000 (23:29 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 25 Nov 2001 23:29:25 +0000 (23:29 +0000)
in which case they should get different aops

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1646 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/gen.c

index f28007c9d07e43b7f25aa8b1af8166132e55956a..ff42baaae1c7d3781a7d07d8c21fbfd3da8cc7e1 100644 (file)
@@ -746,7 +746,7 @@ aopOp (operand * op, iCode * ic, bool result, bool useDP2)
     }
 
   /* if already has a asmop then continue */
-  if (op->aop)
+  if (op->aop && aop->size == getSize(sym->type))
     return;
 
   /* if the underlying symbol has a aop */