mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 16:59:11 +02:00
* set implicitframe for copied tryfinally nodes as well
git-svn-id: trunk@44956 -
This commit is contained in:
parent
90040983b6
commit
55c1ecedac
@ -244,6 +244,7 @@ interface
|
|||||||
function pass_1 : tnode;override;
|
function pass_1 : tnode;override;
|
||||||
function simplify(forinline:boolean): tnode;override;
|
function simplify(forinline:boolean): tnode;override;
|
||||||
protected
|
protected
|
||||||
|
function dogetcopy: tnode;override;
|
||||||
procedure adjust_estimated_stack_size; virtual;
|
procedure adjust_estimated_stack_size; virtual;
|
||||||
end;
|
end;
|
||||||
ttryfinallynodeclass = class of ttryfinallynode;
|
ttryfinallynodeclass = class of ttryfinallynode;
|
||||||
@ -2599,6 +2600,13 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
function ttryfinallynode.dogetcopy: tnode;
|
||||||
|
begin
|
||||||
|
result:=inherited dogetcopy;
|
||||||
|
ttryfinallynode(result).implicitframe:=implicitframe;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure ttryfinallynode.adjust_estimated_stack_size;
|
procedure ttryfinallynode.adjust_estimated_stack_size;
|
||||||
begin
|
begin
|
||||||
inc(current_procinfo.estimatedtempsize,rec_jmp_buf.size);
|
inc(current_procinfo.estimatedtempsize,rec_jmp_buf.size);
|
||||||
|
Loading…
Reference in New Issue
Block a user