mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 21:30:35 +02:00
* Framework for more complex block node simplification
This commit is contained in:
parent
5605566e42
commit
060a7185ab
@ -754,9 +754,11 @@ implementation
|
|||||||
main program body, and those nodes should always be blocknodes
|
main program body, and those nodes should always be blocknodes
|
||||||
since that's what the compiler expects elsewhere. }
|
since that's what the compiler expects elsewhere. }
|
||||||
|
|
||||||
if assigned(left) and
|
if assigned(left) then
|
||||||
not assigned(tstatementnode(left).right) then
|
|
||||||
begin
|
begin
|
||||||
|
if not assigned(tstatementnode(left).right) then
|
||||||
|
begin
|
||||||
|
{ Block has a lone statement }
|
||||||
case tstatementnode(left).left.nodetype of
|
case tstatementnode(left).left.nodetype of
|
||||||
blockn:
|
blockn:
|
||||||
begin
|
begin
|
||||||
@ -781,6 +783,7 @@ implementation
|
|||||||
;
|
;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
{$ifdef break_inlining}
|
{$ifdef break_inlining}
|
||||||
{ simple sequence of tempcreate, assign and return temp.? }
|
{ simple sequence of tempcreate, assign and return temp.? }
|
||||||
if GetStatements(left,a) and
|
if GetStatements(left,a) and
|
||||||
|
Loading…
Reference in New Issue
Block a user