Browse Source

* WebAssembly code generator: don't emit a return instruction at the end of the
function, because it's redundant

Nikolay Nikolov 11 months ago
parent
commit
342ede81ee
1 changed files with 0 additions and 2 deletions
  1. 0 2
      compiler/wasm32/hlcgcpu.pas

+ 0 - 2
compiler/wasm32/hlcgcpu.pas

@@ -2102,8 +2102,6 @@ implementation
           incstack(list,1);
           list.Concat(taicpu.op_sym(a_global_set,RefStackPointerSym));
           decstack(list,1);
-
-          list.concat(taicpu.op_none(a_return));
         end;
       list.concat(taicpu.op_none(a_end_function));
     end;