浏览代码

+ added else to case statement, avoid the warning, produce an internal error in this unexpected case

Nikolay Nikolov 2 年之前
父节点
当前提交
da4980c4c0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/wasm32/aasmcpu.pas

+ 2 - 0
compiler/wasm32/aasmcpu.pas

@@ -283,6 +283,8 @@ uses
                   end;
                   end;
                 a_end_if:
                 a_end_if:
                   ThenDone:=True;
                   ThenDone:=True;
+                else
+                  internalerror(2023100501);
               end;
               end;
             end
             end
           else
           else