From: sandeep Date: Wed, 19 Dec 2001 05:38:51 +0000 (+0000) Subject: Fixed a post increment bug . Cannot post increment if there is a label X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=324414a9ab0ae3495b2db93d800b2b5d601ab8cc;p=fw%2Fsdcc Fixed a post increment bug . Cannot post increment if there is a label git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1714 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/gen.c b/src/ds390/gen.c index d4022405..18166661 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -5542,7 +5542,7 @@ hasInc (operand *op, iCode *ic) return NULL; } /* if GOTO or IFX */ - if (lic->op == IFX || lic->op == GOTO) break; + if (lic->op == IFX || lic->op == GOTO || lic->op == LABEL) break; lic = lic->next; } return NULL; diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index fdcca632..a1a50e41 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -4353,7 +4353,7 @@ hasInc (operand *op, iCode *ic) return NULL; } /* if GOTO or IFX */ - if (lic->op == IFX || lic->op == GOTO) break; + if (lic->op == IFX || lic->op == GOTO || lic->op == LABEL) break; lic = lic->next; } return NULL;