Ensure actual update of index variable in loops in non debug builds

This commit is contained in:
drmortalwombat 2024-05-30 17:51:59 +02:00
parent 2e696d9e1a
commit fbc9607e17

View File

@ -16694,7 +16694,7 @@ void InterCodeBasicBlock::SingleBlockLoopOptimisation(const NumberSet& aliasedPa
} }
} }
if (!hasCall) if (!hasCall && (mProc->mCompilerOptions & COPT_OPTIMIZE_BASIC))
{ {
// Check forwarding globals // Check forwarding globals
@ -20831,7 +20831,7 @@ void InterCodeProcedure::Close(void)
{ {
GrowingTypeArray tstack(IT_NONE); GrowingTypeArray tstack(IT_NONE);
CheckFunc = !strcmp(mIdent->mString, "bmmc_circle_fill"); CheckFunc = !strcmp(mIdent->mString, "main");
CheckCase = false; CheckCase = false;
mEntryBlock = mBlocks[0]; mEntryBlock = mBlocks[0];