mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 23:19:29 +02:00
* fixed another crash, introduced in 6ff566350c
This commit is contained in:
parent
3d55ac9d09
commit
c117c0abf5
@ -69,7 +69,7 @@ implementation
|
||||
while assigned(p) do
|
||||
begin
|
||||
pvs:=tparavarsym(procdefinition.paras[paranr]);
|
||||
if is_wasm_reference_type(p.left.resultdef) and
|
||||
if assigned(p.left) and is_wasm_reference_type(p.left.resultdef) and
|
||||
((pvs.varspez in [vs_var,vs_constref,vs_out]) or
|
||||
((pvs.varspez=vs_const) and (pvs.vardef.typ=formaldef))) then
|
||||
CGMessage(parser_e_wasm_ref_types_can_only_be_passed_by_value);
|
||||
|
Loading…
Reference in New Issue
Block a user