]> git.sur5r.net Git - cc65/commitdiff
Add an additional precondition check for safety.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 19 Aug 2009 10:14:14 +0000 (10:14 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 19 Aug 2009 10:14:14 +0000 (10:14 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4038 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index d1b7640287a2aee5007ed6584fc8a1007296fb59..eee07f879fced780f3c765c3c9e90819bc853dd0 100644 (file)
@@ -898,7 +898,7 @@ unsigned OptUnusedStores (CodeSeg* S)
 
                /* Remember, we had changes */
                ++Changes;
-                            
+
                 /* Continue with next insn */
                 continue;
            }
@@ -1385,6 +1385,14 @@ unsigned OptTransfers3 (CodeSeg* S)
                      */
                     I = Xfer;
                     State = Searching;
+
+                /* Does this insn have a label? */
+                } else if (CE_HasLabel (E)) {
+
+                    /* Too complex to handle - bail out */
+                    I = Xfer;
+                    State = Searching;
+
                 }
                 break;