mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +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
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user