From 6d530931bfc58c925107d2cae10bc2ebe067217b Mon Sep 17 00:00:00 2001
From: acqn <acqn163@outlook.com>
Date: Wed, 1 Jan 2020 23:44:35 +0800
Subject: [PATCH 146/170] Quick fix for the OptPushPop bug reported in Issue
#337.
---
src/cc65/coptind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c
index 318f9593..85901d0f 100644
--- a/src/cc65/coptind.c
+++ b/src/cc65/coptind.c
@@ -1968,7 +1968,7 @@ unsigned OptPushPop (CodeSeg* S)
/* Remember we had changes */
++Changes;
- } else if ((E->Info & OF_CBRA) == 0 &&
+ } else if (!CE_UseLoadFlags (E) &&
(!RegAUsed (S, I) || !ChgA)) {
/* We can remove the PHA and PLA instructions */
--
2.26.0