Browse Source

* Optimized evaluation of the condition.

Yuriy Sydorov 4 năm trước cách đây
mục cha
commit
6bf4c7a68d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;