From: uz Date: Wed, 19 Aug 2009 10:14:14 +0000 (+0000) Subject: Add an additional precondition check for safety. X-Git-Tag: V2.13.0rc1~217 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e8d62cf882048c7363256c888b227cc7f68edb8;p=cc65 Add an additional precondition check for safety. git-svn-id: svn://svn.cc65.org/cc65/trunk@4038 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index d1b764028..eee07f879 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -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;