|
@@ -38,6 +38,7 @@ interface
|
|
implementation
|
|
implementation
|
|
|
|
|
|
uses
|
|
uses
|
|
|
|
+ globals,
|
|
verbose,
|
|
verbose,
|
|
symcpu;
|
|
symcpu;
|
|
|
|
|
|
@@ -46,6 +47,9 @@ implementation
|
|
function twasmaddrnode.pass_typecheck: tnode;
|
|
function twasmaddrnode.pass_typecheck: tnode;
|
|
begin
|
|
begin
|
|
Result:=inherited;
|
|
Result:=inherited;
|
|
|
|
+ if codegenerror then
|
|
|
|
+ exit;
|
|
|
|
+
|
|
if is_wasm_externref(left.resultdef) then
|
|
if 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);
|