mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
+ handle any base and no index in the second if case in thlcgwasm.a_loadaddr_ref_reg
git-svn-id: branches/wasm@47944 -
This commit is contained in:
parent
2084fede95
commit
e4f4f25c44
@ -1166,9 +1166,9 @@ implementation
|
||||
// reading back to the register
|
||||
a_load_stack_reg(list, tosize, r);
|
||||
end
|
||||
else if (ref.base=NR_LOCAL_FRAME_POINTER_REG) and (ref.index=NR_NO) and not assigned(ref.symbol) then
|
||||
else if (ref.base<>NR_NO) and (ref.index=NR_NO) and not assigned(ref.symbol) then
|
||||
begin
|
||||
list.Concat(taicpu.op_reg(a_get_local,NR_LOCAL_FRAME_POINTER_REG));
|
||||
list.Concat(taicpu.op_reg(a_get_local,ref.base));
|
||||
list.Concat(taicpu.op_const(a_i32_const, ref.offset));
|
||||
// todo: index?
|
||||
list.Concat(taicpu.op_none(a_i32_add));
|
||||
|
Loading…
Reference in New Issue
Block a user