From 324414a9ab0ae3495b2db93d800b2b5d601ab8cc Mon Sep 17 00:00:00 2001 From: sandeep Date: Wed, 19 Dec 2001 05:38:51 +0000 Subject: [PATCH] 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 --- src/ds390/gen.c | 2 +- src/mcs51/gen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5