From: sandeep Date: Sun, 9 Sep 2001 20:11:40 +0000 (+0000) Subject: fixed up hasInc function, was missing some opputunities X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=1578e0ccf4979a63613559cbc354fbd696b32631;p=fw%2Fsdcc fixed up hasInc function, was missing some opputunities to catch postincrements git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1252 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 7f2c239e..f239639d 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -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;