From: tecodev Date: Sat, 22 Jan 2005 15:27:06 +0000 (+0000) Subject: * src/SDCCopt.c (killDeadCode): checking for right operand can cause X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=5267792e9b31120c7845fa888787b41bcdc5b38e;p=fw%2Fsdcc * src/SDCCopt.c (killDeadCode): checking for right operand can cause crash somewhere else. Removed. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3647 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCopt.c b/src/SDCCopt.c index 1377a58e..af7d6b6d 100644 --- a/src/SDCCopt.c +++ b/src/SDCCopt.c @@ -886,10 +886,6 @@ killDeadCode (eBBlock ** ebbs, int count) if (IC_LEFT(ic) && isOperandVolatile (IC_LEFT (ic), TRUE)) continue; - /* if the right operand is volatile then continue */ - if (IC_RIGHT(ic) && isOperandVolatile (IC_RIGHT (ic), TRUE)) - continue; - /* if the result is a temp & isaddr then skip */ if (IC_RESULT (ic) && POINTER_SET (ic))