a fix for the initialized structs and some others, see
[fw/sdcc] / src / mcs51 / ralloc.c
index 2bdf5298bbcec6859318fe1e5fe66948083ed818..1c8d487bdc67407d1878341b82cd38d8aeb0ad70 100644 (file)
@@ -2442,7 +2442,7 @@ packRegisters (eBBlock * ebp)
 
              /* if the type from and type to are the same
                 then if this is the only use then packit */
-             if (checkType (operandType (IC_RIGHT (ic)),
+             if (compareType (operandType (IC_RIGHT (ic)),
                             operandType (IC_LEFT (ic))) == 1)
                {
                  iCode *dic = packRegsForOneuse (ic, IC_RIGHT (ic), ebp);