mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 08:06:07 +02:00
+ also check for assigned(left) after calling inherited in twasmaddrnode.pass_typecheck, to avoid another crash
This commit is contained in:
parent
84b60d3f00
commit
8b138aa059
@ -50,7 +50,7 @@ implementation
|
|||||||
if codegenerror then
|
if codegenerror then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
if is_wasm_externref(left.resultdef) then
|
if assigned(left) and is_wasm_externref(left.resultdef) then
|
||||||
begin
|
begin
|
||||||
CGMessagePos(left.fileinfo,type_e_cannot_take_address_of_wasm_externref);
|
CGMessagePos(left.fileinfo,type_e_cannot_take_address_of_wasm_externref);
|
||||||
result:=nil;
|
result:=nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user