瀏覽代碼

* generate an internal error to avoid infinite loops if nothing changed during a loop pass to write the debug info of remaining defs

git-svn-id: trunk@37968 -
svenbarth 7 年之前
父節點
當前提交
ff44f51292
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/dbgbase.pas

+ 2 - 0
compiler/dbgbase.pas

@@ -339,6 +339,8 @@ implementation
                     internalerror(200610054);
                 end;
               end;
+            if looplist.count=deftowritelist.count then
+              internalerror(2018011401);
             looplist.clear;
             templist := looplist;
             looplist := deftowritelist;