mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:49:09 +02:00
* allow recursive inlines, meanwhile, there are other means to avoid too deep recursion of inlining
git-svn-id: trunk@45214 -
This commit is contained in:
parent
43e6d84f33
commit
0794878b41
@ -5143,13 +5143,10 @@ implementation
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ consider it must not be inlined if called
|
|
||||||
again inside the args or itself }
|
|
||||||
exclude(procdefinition.procoptions,po_inline);
|
|
||||||
typecheckpass(tnode(inlineblock));
|
typecheckpass(tnode(inlineblock));
|
||||||
doinlinesimplify(tnode(inlineblock));
|
doinlinesimplify(tnode(inlineblock));
|
||||||
|
node_reset_flags(tnode(inlineblock),[nf_pass1_done]);
|
||||||
firstpass(tnode(inlineblock));
|
firstpass(tnode(inlineblock));
|
||||||
include(procdefinition.procoptions,po_inline);
|
|
||||||
result:=inlineblock;
|
result:=inlineblock;
|
||||||
|
|
||||||
{ if the function result is used then verify that the blocknode
|
{ if the function result is used then verify that the blocknode
|
||||||
|
Loading…
Reference in New Issue
Block a user