Fixed problem where slocs can be shared by two operands, in which case
[fw/sdcc] / src / pic / gen.c
index afc8beb38496c320ab3613bd8cedf6d0490d0b5d..981eec6e7ed576a5cc31fb29a6ac0a940f48dff6 100644 (file)
@@ -710,7 +710,7 @@ void aopOp (operand *op, iCode *ic, bool result)
     }
 
     /* 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 */