瀏覽代碼

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

Nikolay Nikolov 1 年之前
父節點
當前提交
342ede81ee
共有 1 個文件被更改,包括 0 次插入2 次删除
  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;