瀏覽代碼

* generate an internal error, instead of warning for i32.const and
i64.const instructions with an unknown parameter

Nikolay Nikolov 3 年之前
父節點
當前提交
0486caeb91
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/wasm32/aasmcpu.pas

+ 2 - 2
compiler/wasm32/aasmcpu.pas

@@ -552,7 +552,7 @@ uses
                   top_const:
                     result:=1+SlebSize(val);
                   else
-                    Writeln('Warning! Not implemented opcode, pass1: ', opcode, ' ', typ);
+                    internalerror(2021092615);
                 end;
             end;
           a_local_get,
@@ -1046,7 +1046,7 @@ uses
                   top_const:
                     WriteSleb(val);
                   else
-                    Writeln('Warning! Not implemented opcode, pass2: ', opcode, ' ', typ);
+                    internalerror(2021092615);
                 end;
             end;
           a_local_get,