Merge pull request #2502 from kugelfuhr/kugelfuhr/fix-2461

Fix issue #2461
This commit is contained in:
Bob Andrews
2024-09-13 15:53:49 +02:00
committed by GitHub
2 changed files with 71 additions and 2 deletions

View File

@@ -1128,8 +1128,10 @@ void AddOpHigh (StackOpData* D, opc_t OPC, LoadInfo* LI, int KeepResult)
InsertEntry (D, X, D->IP++);
}
/* In both cases, we can remove the load */
LI->X.Flags |= LI_REMOVE;
/* If this is the right hand side, we can remove the load. */
if (LI == &D->Rhs) {
LI->X.Flags |= LI_REMOVE;
}
} else {
/* opc zphi */