+ added WebAssembly invalid register check in op_reg when compiler is compiled with EXTDEBUG

git-svn-id: branches/wasm@48177 -
This commit is contained in:
nickysn 2021-01-18 22:29:45 +00:00
parent ec7fbcb271
commit c8e130d525

View File

@ -186,6 +186,10 @@ implementation
begin
inherited create(op);
ops:=1;
{$ifdef EXTDEBUG}
if getregtype(_op1)=R_INVALIDREGISTER then
InternalError(2021011901);
{$endif EXTDEBUG}
loadreg(0,_op1);
end;