瀏覽代碼

* Optimized evaluation of the condition.

Yuriy Sydorov 4 年之前
父節點
當前提交
6bf4c7a68d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/optloop.pas

+ 2 - 2
compiler/optloop.pas

@@ -344,8 +344,8 @@ unit optloop;
       procedure CheckCalcAtEnd;
         begin
           if not assigned(initcode) then
-            docalcatend:=not(foreachnodestatic(tfornode(arg).t2,@checkcontinue,nil)) and
-              not(assigned(tfornode(arg).entrylabel));
+            docalcatend:=not(assigned(tfornode(arg).entrylabel)) and
+              not(foreachnodestatic(tfornode(arg).t2,@checkcontinue,nil));
         end;