mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 22:09:32 +02:00
* Bug fix where copied block nodes didn't inherit the original's flags
This commit is contained in:
parent
b828529b24
commit
edc1c79cbb
@ -124,6 +124,7 @@ interface
|
|||||||
destructor destroy; override;
|
destructor destroy; override;
|
||||||
constructor ppuload(t:tnodetype;ppufile:tcompilerppufile);override;
|
constructor ppuload(t:tnodetype;ppufile:tcompilerppufile);override;
|
||||||
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
||||||
|
function dogetcopy : tnode;override;
|
||||||
function simplify(forinline : boolean) : tnode; override;
|
function simplify(forinline : boolean) : tnode; override;
|
||||||
function pass_1 : tnode;override;
|
function pass_1 : tnode;override;
|
||||||
function pass_typecheck:tnode;override;
|
function pass_typecheck:tnode;override;
|
||||||
@ -734,6 +735,13 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
function tblocknode.dogetcopy : tnode;
|
||||||
|
begin
|
||||||
|
Result:=inherited dogetcopy;
|
||||||
|
TBlockNode(Result).blocknodeflags:=blocknodeflags;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
function NodesEqual(var n: tnode; arg: pointer): foreachnoderesult;
|
function NodesEqual(var n: tnode; arg: pointer): foreachnoderesult;
|
||||||
begin
|
begin
|
||||||
if n.IsEqual(tnode(arg)) then
|
if n.IsEqual(tnode(arg)) then
|
||||||
|
Loading…
Reference in New Issue
Block a user