Explorar o código

* fixed another crash, introduced in 6ff566350cbc2ecf8615cae6cc6792939a288ec8

Nikolay Nikolov %!s(int64=2) %!d(string=hai) anos
pai
achega
c117c0abf5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/wasm32/nwasmcal.pas

+ 1 - 1
compiler/wasm32/nwasmcal.pas

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