+ also check for assigned(left) after calling inherited in twasmaddrnode.pass_typecheck, to avoid another crash

This commit is contained in:
Nikolay Nikolov 2023-06-11 04:11:02 +03:00
parent 84b60d3f00
commit 8b138aa059

View File

@ -50,7 +50,7 @@ implementation
if codegenerror then
exit;
if is_wasm_externref(left.resultdef) then
if assigned(left) and is_wasm_externref(left.resultdef) then
begin
CGMessagePos(left.fileinfo,type_e_cannot_take_address_of_wasm_externref);
result:=nil;