Browse Source

* fixed thlcgwasm.g_adjust_stack_after_call after the removal of discardresult

Nikolay Nikolov 3 năm trước cách đây
mục cha
commit
58e4692795
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      compiler/wasm32/hlcgcpu.pas

+ 0 - 2
compiler/wasm32/hlcgcpu.pas

@@ -2375,8 +2375,6 @@ implementation
       else
       else
         ft:=tcpuprocdef(pd).create_functype;
         ft:=tcpuprocdef(pd).create_functype;
       totalremovesize:=Length(ft.params)-Length(ft.results);
       totalremovesize:=Length(ft.params)-Length(ft.results);
-      if Length(ft.results)=0 then
-        dec(totalremovesize);
       { remove parameters from internal evaluation stack counter (in case of
       { remove parameters from internal evaluation stack counter (in case of
         e.g. no parameters and a result, it can also increase) }
         e.g. no parameters and a result, it can also increase) }
       if totalremovesize>0 then
       if totalremovesize>0 then