fixed a loop invariant bug
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 14 Oct 2000 20:08:58 +0000 (20:08 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 14 Oct 2000 20:08:58 +0000 (20:08 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@463 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCloop.c

index e98192ad074c909d6f15f5e715673fc01edddd7b..4cf349c4e285450d4a8e52e2ec1a345b03d81ac7 100644 (file)
@@ -537,8 +537,9 @@ DEFSETFUNC(hasNonPtrUse)
        for (cdp = setFirstItem(lInvars); cdp ; cdp = setNextItem(lInvars)) {
 
            /* maintain data flow .. add it to the */
-           /* defSet & outExprs of the preheader  */
+           /* ldefs defSet & outExprs of the preheader  */
            preHdr->defSet = bitVectSetBit (preHdr->defSet,cdp->diCode->key);
+           preHdr->ldefs = bitVectSetBit (preHdr->ldefs,cdp->diCode->key);
            cdp->diCode->lineno = preHdr->ech->lineno;
            addSetHead (&preHdr->outExprs,cdp);