From 1578e0ccf4979a63613559cbc354fbd696b32631 Mon Sep 17 00:00:00 2001 From: sandeep Date: Sun, 9 Sep 2001 20:11:40 +0000 Subject: [PATCH] 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 --- src/mcs51/gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2