Преглед изворни кода

* fixed tai_wasmstruc_try_table.create_from to stop on a_end_try_table, instead of a_end_block

Nikolay Nikolov пре 1 дан
родитељ
комит
66db4dfe94
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      compiler/wasm32/aasmcpu.pas

+ 1 - 1
compiler/wasm32/aasmcpu.pas

@@ -1799,7 +1799,7 @@ uses
           p:=tai(srclist.First);
           if not assigned(p) then
             internalerror(2023100305);
-          if (p.typ=ait_instruction) and (taicpu(p).opcode=a_end_block) then
+          if (p.typ=ait_instruction) and (taicpu(p).opcode=a_end_try_table) then
             begin
               srclist.Remove(p);
               Done:=True;