mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +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
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user