mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 20:11:02 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user