mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:09:25 +02:00
+ 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:
parent
ded9afb787
commit
2084fede95
@ -1158,7 +1158,7 @@ implementation
|
|||||||
(ref.base=NR_LOCAL_STACK_POINTER_REG) or (ref.index=NR_LOCAL_STACK_POINTER_REG) then
|
(ref.base=NR_LOCAL_STACK_POINTER_REG) or (ref.index=NR_LOCAL_STACK_POINTER_REG) then
|
||||||
internalerror(2021010101);
|
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
|
begin
|
||||||
// pushing address on stack
|
// pushing address on stack
|
||||||
list.Concat(taicpu.op_ref(a_i32_const, ref));
|
list.Concat(taicpu.op_ref(a_i32_const, ref));
|
||||||
|
Loading…
Reference in New Issue
Block a user