From ac69017ca537ab91c2a13f8b4318831ca3c70cc0 Mon Sep 17 00:00:00 2001 From: Alex Volkov Date: Wed, 25 Mar 2026 19:01:37 -0400 Subject: [PATCH] Remove redundant LoadEntry clears; DelEntry() already handles clearing them, and the redundant clears are a red herring in the code. --- src/cc65/codeoptutil.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cc65/codeoptutil.c b/src/cc65/codeoptutil.c index 9c9699a6a..6d64d89e2 100644 --- a/src/cc65/codeoptutil.c +++ b/src/cc65/codeoptutil.c @@ -1229,7 +1229,6 @@ void RemoveRegLoads (StackOpData* D, LoadInfo* LI) if (LI->A.LoadIndex >= 0 && (LI->A.LoadEntry->Flags & CEF_DONT_REMOVE) == 0) { DelEntry (D, LI->A.LoadIndex); - LI->A.LoadEntry = 0; } if (LI->A.LoadYIndex >= 0 && (LI->A.LoadYEntry->Flags & CEF_DONT_REMOVE) == 0) { @@ -1252,7 +1251,6 @@ void RemoveRegLoads (StackOpData* D, LoadInfo* LI) if (LI->X.LoadIndex >= 0 && (LI->X.LoadEntry->Flags & CEF_DONT_REMOVE) == 0) { DelEntry (D, LI->X.LoadIndex); - LI->X.LoadEntry = 0; } if (LI->X.LoadYIndex >= 0 && (LI->X.LoadYEntry->Flags & CEF_DONT_REMOVE) == 0) {