fix PRED in nested blocks

This commit is contained in:
dzaima 2021-10-01 20:25:23 +03:00
parent bc7e7e3627
commit ad436a07ee

View File

@ -334,7 +334,7 @@ Block* compileBlock(B block, Comp* comp, bool* bDone, u32* bc, usz bcIA, B allBl
ins = ins==VARO? EXTO : ins==VARM? EXTM : EXTO;
}
}
if (remapArgs && cpos<argAm) cpos+= vam;
if (remapArgs && cpos<argAm && cdepth==0) cpos+= vam;
TSADD(newBC, ins);
TSADD(newBC, cdepth);
TSADD(newBC, cpos);