Преглед изворни кода

* 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;