Browse Source

* Only perform the block flattening if "forinline" is true or under -O2 and above

J. Gareth "Curious Kit" Moreton 1 year ago
parent
commit
ac3425a14d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/nbas.pas

+ 1 - 1
compiler/nbas.pas

@@ -785,7 +785,7 @@ implementation
                     ;
                     ;
                 end;
                 end;
               end
               end
-            else
+            else if forinline or (cs_opt_level2 in current_settings.optimizerswitches) then
               begin
               begin
                 n := TStatementNode(left);
                 n := TStatementNode(left);
                 while Assigned(n) and Assigned(n.right) do
                 while Assigned(n) and Assigned(n.right) do