mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-04 06:54:52 +01:00
* fixed web bug #4039 (include methodpointer init/fini for inlined methods)
git-svn-id: trunk@390 -
This commit is contained in:
parent
96a556f1ba
commit
893f45c9e2
@ -2212,6 +2212,13 @@ type
|
||||
{ create blocks for loading/deleting of local data }
|
||||
createblock:=internalstatements(createstatement);
|
||||
deleteblock:=internalstatements(deletestatement);
|
||||
|
||||
{ add methodpointer init/fini code to init/done statements }
|
||||
if assigned(methodpointerinit) then
|
||||
addstatement(createstatement,methodpointerinit.getcopy);
|
||||
if assigned(methodpointerdone) then
|
||||
addstatement(deletestatement,methodpointerdone.getcopy);
|
||||
|
||||
inlinelocals:=tlist.create;
|
||||
{ get copy of the procedure body }
|
||||
body:=tprocdef(procdefinition).inlininginfo^.code.getcopy;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user