+ disallow using sizeof() and bitsizeof() on WebAssembly reference types

This commit is contained in:
Nikolay Nikolov 2023-06-20 16:56:47 +03:00 committed by Pierre Muller
parent bc99569a35
commit 54af0d32f3

View File

@ -460,6 +460,7 @@ implementation
{ allow helpers for SizeOf and BitSizeOf }
if p1.nodetype=typen then
ttypenode(p1).helperallowed:=true;
//Writeln(p1.nodetype, p1.resultdef.typ);
if (p1.resultdef.typ=forwarddef) then
Message1(type_e_type_is_not_completly_defined,tforwarddef(p1.resultdef).tosymname^);
{$ifdef wasm}