Added an additional precondition check to OptJumpTarget3.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4280 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -777,7 +777,8 @@ unsigned OptJumpTarget3 (CodeSeg* S)
|
|||||||
if ((E->Info & OF_LOAD) != 0 &&
|
if ((E->Info & OF_LOAD) != 0 &&
|
||||||
CE_IsConstImm (E) &&
|
CE_IsConstImm (E) &&
|
||||||
CE_HasLabel (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 */
|
/* Walk over all insn that jump here */
|
||||||
for (J = 0; J < CE_GetLabelCount (E); ++J) {
|
for (J = 0; J < CE_GetLabelCount (E); ++J) {
|
||||||
|
|||||||
Reference in New Issue
Block a user