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

This commit is contained in:
J. Gareth "Curious Kit" Moreton 2024-02-15 00:16:13 +00:00 committed by FPK
parent 63e8633262
commit ac3425a14d

View File

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