+ handle all constant address (regardless of whether they are relative to a symbol or not) in thlcgwasm.a_loadaddr_ref_reg

git-svn-id: branches/wasm@47943 -
This commit is contained in:
nickysn 2021-01-02 05:48:40 +00:00
parent ded9afb787
commit 2084fede95

View File

@ -1158,7 +1158,7 @@ implementation
(ref.base=NR_LOCAL_STACK_POINTER_REG) or (ref.index=NR_LOCAL_STACK_POINTER_REG) then
internalerror(2021010101);
if assigned(ref.symbol) and (ref.base=NR_NO) and (ref.index=NR_NO) then
if (ref.base=NR_NO) and (ref.index=NR_NO) then
begin
// pushing address on stack
list.Concat(taicpu.op_ref(a_i32_const, ref));