From: sandeep Date: Wed, 14 Nov 2001 07:14:54 +0000 (+0000) Subject: Fixed a post increment bug X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=26270446eb1ecbe8485f9c41cb56c8ecc262a9bc;p=fw%2Fsdcc Fixed a post increment bug git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1590 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index ebd22eb0..1b6b6149 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -4317,6 +4317,8 @@ hasInc (operand *op, iCode *ic) if (bitVectBitValue(OP_USES(op),lic->key) || (unsigned) lic->defKey == op->key) { return NULL; } + /* if GOTO or IFX */ + if (lic->op == IFX || lic->op == GOTO) break; lic = lic->next; } return NULL;