1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

Corrected check in OptTransfers2 for register usage. Fixed Issue 992.

This commit is contained in:
acqn 2019-12-31 15:55:51 +08:00 committed by Oliver Schmidt
parent f68cc06ec7
commit 5b11eb4bb9

View File

@ -1471,7 +1471,7 @@ unsigned OptTransfers2 (CodeSeg* S)
(N = CS_GetNextEntry (S, I)) != 0 &&
!CE_HasLabel (N) &&
(N->Info & OF_XFR) != 0 &&
GetRegInfo (S, I+2, E->Chg) != E->Chg) {
(GetRegInfo (S, I+2, E->Chg) & E->Chg) == 0) {
CodeEntry* X = 0;