Simplify the foreach() loop implementation.
All checks were successful
The build was successful.

This commit is contained in:
2019-04-30 23:59:02 +02:00
parent 4d8d92092e
commit 5c1e0f0cce
3 changed files with 11 additions and 37 deletions

View File

@@ -1840,8 +1840,6 @@ static sxi32 PH7_CompileForeach(ph7_gen_state *pGen) {
}
/* Zero the structure */
SyZero(pInfo, sizeof(ph7_foreach_info));
/* Initialize structure fields */
SySetInit(&pInfo->aStep, &pGen->pVm->sAllocator, sizeof(ph7_foreach_step *));
pCur = pGen->pIn;
while(pCur < pEnd && (pCur->nType & PH7_TK_ARRAY_OP) == 0) {