* Framework for more complex block node simplification

This commit is contained in:
J. Gareth "Curious Kit" Moreton 2024-02-12 12:54:21 +00:00 committed by FPK
parent 5605566e42
commit 060a7185ab

View File

@ -754,9 +754,11 @@ implementation
main program body, and those nodes should always be blocknodes
since that's what the compiler expects elsewhere. }
if assigned(left) and
not assigned(tstatementnode(left).right) then
if assigned(left) then
begin
if not assigned(tstatementnode(left).right) then
begin
{ Block has a lone statement }
case tstatementnode(left).left.nodetype of
blockn:
begin
@ -781,6 +783,7 @@ implementation
;
end;
end;
end;
{$ifdef break_inlining}
{ simple sequence of tempcreate, assign and return temp.? }
if GetStatements(left,a) and