Browse Source

* fixed crash in map_structured_asmlist_inner, when the TAsmList parameter is nil

Nikolay Nikolov 1 year ago
parent
commit
ea18d11d41
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/wasm32/aasmcpu.pas

+ 2 - 0
compiler/wasm32/aasmcpu.pas

@@ -2649,6 +2649,8 @@ uses
       var
         p, q: tai;
       begin
+        if not assigned(l) then
+          exit;
         p:=tai(l.First);
         while p<>nil do
           begin