瀏覽代碼

+ internal error in thlcgwasm.prepare_stack_for_ref for symbol with registers

git-svn-id: branches/wasm@47170 -
nickysn 4 年之前
父節點
當前提交
9972d0e7d9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/wasm32/hlcgcpu.pas

+ 2 - 0
compiler/wasm32/hlcgcpu.pas

@@ -1038,6 +1038,8 @@ implementation
           list.Concat(taicpu.op_const(a_i32_const,0));
           incstack(list,1);
           result:=1;
+          if (ref.base<>NR_NO) or (ref.index<>NR_NO) then
+            internalerror(2020102401);
         end
       else if ref.index <> NR_NO then // array access
       begin