]> git.sur5r.net Git - cc65/blobdiff - src/cc65/coptind.c
Added an additional precondition check to OptJumpTarget3.
[cc65] / src / cc65 / coptind.c
index 80d6c772c65a56647da04e0bc68c03f65915e487..de3f67b463fad490bba81ecccb71bb6d8708809a 100644 (file)
@@ -771,13 +771,14 @@ unsigned OptJumpTarget3 (CodeSeg* S)
         CodeLabel* LN = 0;
 
        /* Get next entry */
-               CodeEntry* E = CS_GetEntry (S, I);  
+               CodeEntry* E = CS_GetEntry (S, I);
 
         /* Check if this is a load insn with a label */
         if ((E->Info & OF_LOAD) != 0            &&
             CE_IsConstImm (E)                   &&
             CE_HasLabel (E)                     &&
-            (N = CS_GetNextEntry (S, I)) != 0)    {
+            (N = CS_GetNextEntry (S, I)) != 0   &&
+            (N->Info & OF_FBRA) == 0)    {
 
             /* Walk over all insn that jump here */
             for (J = 0; J < CE_GetLabelCount (E); ++J) {