Fixed problem where slocs can be shared by two operands, in which case
[fw/sdcc] / src / avr / gen.c
index 7a453019833be0c989be7794495af7eaa1f473ca..c2cb6e27e497ddea38e4c7c2db7a3027c16bd2f5 100644 (file)
@@ -724,7 +724,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 */