* 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:
Nikolay Nikolov 2025-02-02 16:26:42 +02:00
parent 452c766f04
commit 2e77e1a471

View File

@ -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;