소스 검색

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

Nikolay Nikolov 2 년 전
부모
커밋
8b138aa059
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/wasm32/nwasmmem.pas

+ 1 - 1
compiler/wasm32/nwasmmem.pas

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