From 26270446eb1ecbe8485f9c41cb56c8ecc262a9bc Mon Sep 17 00:00:00 2001 From: sandeep Date: Wed, 14 Nov 2001 07:14:54 +0000 Subject: [PATCH] Fixed a post increment bug git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1590 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/mcs51/gen.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2