mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 12:05:57 +02:00
* WebAssembly: also handle dup=true in thlcgwasm.prepare_stack_for_ref for absolute address refs
This commit is contained in:
parent
2e77e1a471
commit
6ce57a1625
@ -1322,6 +1322,11 @@ implementation
|
||||
{ no symbol, no index, just fixed address, e.g. var a: longint absolute 5; }
|
||||
list.Concat(taicpu.op_const(a_i32_const,0));
|
||||
incstack(list,1);
|
||||
if dup then
|
||||
begin
|
||||
list.Concat(taicpu.op_const(a_i32_const,0));
|
||||
incstack(list,1);
|
||||
end;
|
||||
result:=1;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user