From fbc9607e17621b6b583a707aaa5e410d419ba2d9 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Thu, 30 May 2024 17:51:59 +0200 Subject: [PATCH] Ensure actual update of index variable in loops in non debug builds --- oscar64/InterCode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar64/InterCode.cpp b/oscar64/InterCode.cpp index 0417ea3..21958f7 100644 --- a/oscar64/InterCode.cpp +++ b/oscar64/InterCode.cpp @@ -16694,7 +16694,7 @@ void InterCodeBasicBlock::SingleBlockLoopOptimisation(const NumberSet& aliasedPa } } - if (!hasCall) + if (!hasCall && (mProc->mCompilerOptions & COPT_OPTIMIZE_BASIC)) { // Check forwarding globals @@ -20831,7 +20831,7 @@ void InterCodeProcedure::Close(void) { GrowingTypeArray tstack(IT_NONE); - CheckFunc = !strcmp(mIdent->mString, "bmmc_circle_fill"); + CheckFunc = !strcmp(mIdent->mString, "main"); CheckCase = false; mEntryBlock = mBlocks[0];