X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmcs51%2Fgen.c;fp=src%2Fmcs51%2Fgen.c;h=9375087a431f1cae78da365a154314d34869efed;hb=b1a10c8ec5142594ec5698fa241d7433873ce710;hp=df242f3059f3e3b124d631fcd1c08c4ba9120be3;hpb=8cde0134013542c2a50456584652e24dc91708af;p=fw%2Fsdcc diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index df242f30..9375087a 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -7210,7 +7210,7 @@ genOr (iCode * ic, iCode * ifx) // result = 1 if (size) emitcode ("setb", "%s", AOP (result)->aopu.aop_dir); - else + else if(ifx) continueIfTrue (ifx); goto release; } @@ -7228,7 +7228,7 @@ genOr (iCode * ic, iCode * ifx) emitLabel (tlbl); } else - { + { /* FIXME, thats pretty fishy, check for ifx!=0, testcase .. */ genIfxJump (ifx, "a", left, right, result, ic->next); goto release; }