Fixed problem where slocs can be shared by two operands, in which case
[fw/sdcc] / src / mcs51 / gen.c
index 26ffca96098a23ace98bfdecba87f9d0a797d3a7..29d1711565a8d20a59fc955718ad481a8ae58c47 100644 (file)
@@ -554,7 +554,7 @@ 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 */