mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00
* WebAssembly codegen: fixed access to absolute variables, pointing to just a constant address, e.g. var a: longint absolute 5;
This commit is contained in:
parent
452c766f04
commit
2e77e1a471
@ -1319,12 +1319,10 @@ implementation
|
||||
end
|
||||
else
|
||||
begin
|
||||
{ static field -> nothing to do here, except for validity check }
|
||||
{if not assigned(ref.symbol) or
|
||||
(ref.offset<>0) then
|
||||
begin
|
||||
internalerror(2010120525);
|
||||
end;}
|
||||
{ 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);
|
||||
result:=1;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user