Fixed algebraicOpts() for division by self
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 25 Nov 2001 22:16:34 +0000 (22:16 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 25 Nov 2001 22:16:34 +0000 (22:16 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1643 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCcse.c

index 435bff7507c8a0aee97c74322c076328e16512cd..23dece6272c69be3f1935b191d15d702d80e8058 100644 (file)
@@ -790,6 +790,7 @@ algebraicOpts (iCode * ic)
          IC_LEFT (ic) = NULL;
          IC_RESULT (ic) = operandFromOperand (IC_RESULT (ic));
          IC_RESULT (ic)->isaddr = 0;
+         break;
        }
       /* if this is a division then check if right */
       /* is one then change it to an assignment    */