Browse Source

* Optimized evaluation of the condition.

Yuriy Sydorov 3 years ago
parent
commit
6bf4c7a68d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/optloop.pas

+ 2 - 2
compiler/optloop.pas

@@ -344,8 +344,8 @@ unit optloop;
       procedure CheckCalcAtEnd;
       procedure CheckCalcAtEnd;
         begin
         begin
           if not assigned(initcode) then
           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;
         end;