From 684c0013ebe433496e077020cdbc68b060e90401 Mon Sep 17 00:00:00 2001 From: MaartenBrock Date: Sat, 3 Nov 2007 15:36:25 +0000 Subject: [PATCH] * src/mcs51/gen.c (outBitC): retry of optimization for dummy result git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4959 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/mcs51/gen.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 338961c9..662235b4 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -1857,14 +1857,11 @@ outBitC (operand * result) if (!IS_OP_RUONLY (result)) aopPut (result, "c", 0); } - else + else if (AOP_TYPE (result) != AOP_DUMMY) { - if (getDataSize (result)) - { - emitcode ("clr", "a"); - emitcode ("rlc", "a"); - outAcc (result); - } + emitcode ("clr", "a"); + emitcode ("rlc", "a"); + outAcc (result); } } -- 2.30.2