浏览代码

* get rid of the internal error in thlcgwasm.a_cmp_ref_reg_stack by using swap_opcmp

git-svn-id: branches/wasm@48332 -
nickysn 4 年之前
父节点
当前提交
9e95895a9b
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      compiler/wasm32/hlcgcpu.pas

+ 2 - 5
compiler/wasm32/hlcgcpu.pas

@@ -644,11 +644,8 @@ implementation
       a_load_reg_stack(list,size,reg);
       if tmpref.base<>NR_EVAL_STACK_BASE then
         a_load_ref_stack(list,size,tmpref,prepare_stack_for_ref(list,tmpref,false))
-      else begin
-        // todo: need a swap operation?
-        //list.concat(taicpu.op_none(a_swap));
-        Internalerror(2019083003);
-      end;
+      else
+        cmp_op:=swap_opcmp(cmp_op);
       a_cmp_stack_stack(list,size,cmp_op);
     end;