* use NR_LOCAL_STACK_POINTER_REG in ttgwasm.localVarToRef

git-svn-id: branches/wasm@47777 -
This commit is contained in:
nickysn 2020-12-14 23:07:17 +00:00
parent ce8439fb36
commit fd690e8ba1

View File

@ -397,7 +397,7 @@ unit tgcpu;
procedure ttgwasm.localVarToRef(idx: integer; size: integer; out ref: treference);
begin
reference_reset_base(ref, current_procinfo.framepointer,idx,ctempposinvalid,size,[]);
reference_reset_base(ref,NR_LOCAL_STACK_POINTER_REG,idx,ctempposinvalid,size,[]);
ref.islocal := true;
updateFirstTemp;
end;