Explorar o código

* fixed internal linker crash if no tags are defined (i.e. no WASM native exceptions used)

Nikolay Nikolov hai 1 ano
pai
achega
e3f4bad164
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/ogwasm.pas

+ 1 - 1
compiler/ogwasm.pas

@@ -4739,7 +4739,7 @@ implementation
         begin
         begin
           exesec:=FindExeSection('.wasm_tags');
           exesec:=FindExeSection('.wasm_tags');
           if not assigned(exesec) then
           if not assigned(exesec) then
-            internalerror(2024010701);
+            exit;
           tags_count:=exesec.ObjSectionList.Count;
           tags_count:=exesec.ObjSectionList.Count;
           if tags_count<>exesec.Size then
           if tags_count<>exesec.Size then
             internalerror(2024010702);
             internalerror(2024010702);