fixed up hasInc function, was missing some opputunities
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 9 Sep 2001 20:11:40 +0000 (20:11 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 9 Sep 2001 20:11:40 +0000 (20:11 +0000)
to catch postincrements

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

src/mcs51/gen.c

index 7f2c239ef5a9cfd245984455a2484cf4b80fd392..f239639daf51e9c5b896594c463f1bcd8d3c2876 100644 (file)
@@ -4218,7 +4218,7 @@ hasInc (operand *op, iCode *ic)
       return lic;
     }
     /* if the operand used or deffed */
-    if (bitVectBitValue(ic->uses,op->key) || (unsigned) ic->defKey == op->key) {
+    if (bitVectBitValue(OP_USES(op),lic->key) || (unsigned) lic->defKey == op->key) {
       return NULL;
     }
     lic = lic->next;