瀏覽代碼

+ produce a warning for values, remaining on top of stack at end of function

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

+ 2 - 0
compiler/wasm32/hlcgcpu.pas

@@ -1603,6 +1603,8 @@ implementation
     begin
     begin
       list.concat(taicpu.op_none(a_end_block));
       list.concat(taicpu.op_none(a_end_block));
       decblock;
       decblock;
+      if fevalstackheight<>0 then
+        list.concat(tai_comment.Create(strpnew('!!! values remaining on stack at end of block !!!')));
       { todo: inherited? }
       { todo: inherited? }
     end;
     end;