mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 12:50:27 +02:00
* procedures containing nested procedures accessing their data can't be inlined, fixes ie in tcalfun8.pp
git-svn-id: trunk@1274 -
This commit is contained in:
parent
ab88e4b882
commit
77cc54351c
@ -277,6 +277,8 @@ implementation
|
||||
if assigned(left) then
|
||||
internalerror(200309289);
|
||||
left:=cloadparentfpnode.create(tprocdef(symtable.defowner));
|
||||
{ we can't inline the referenced parent procedure }
|
||||
exclude(tprocdef(symtable.defowner).procoptions,po_inline);
|
||||
{ reference in nested procedures, variable needs to be in memory }
|
||||
make_not_regable(self);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user