mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +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;
|
||||
|
||||
{ consider it must not be inlined if called
|
||||
again inside the args or itself }
|
||||
exclude(procdefinition.procoptions,po_inline);
|
||||
typecheckpass(tnode(inlineblock));
|
||||
doinlinesimplify(tnode(inlineblock));
|
||||
node_reset_flags(tnode(inlineblock),[nf_pass1_done]);
|
||||
firstpass(tnode(inlineblock));
|
||||
include(procdefinition.procoptions,po_inline);
|
||||
result:=inlineblock;
|
||||
|
||||
{ if the function result is used then verify that the blocknode
|
||||
|
Loading…
Reference in New Issue
Block a user