* don't call buildderef for the local symtable of procdefs unless we will

write it to the ppu

git-svn-id: trunk@26083 -
This commit is contained in:
Jonas Maebe 2013-11-13 20:52:38 +00:00
parent 92508a9801
commit 9b1a36fcdb

View File

@ -4926,16 +4926,16 @@ implementation
begin
inherited buildderefimpl;
{ Localst is not available for main/unit init }
if assigned(localst) then
begin
tlocalsymtable(localst).buildderef;
tlocalsymtable(localst).buildderefimpl;
end;
{ inline tree }
if (po_has_inlininginfo in procoptions) then
begin
{ Localst is not available for main/unit init }
if assigned(localst) then
begin
tlocalsymtable(localst).buildderef;
tlocalsymtable(localst).buildderefimpl;
end;
funcretsymderef.build(funcretsym);
inlininginfo^.code.buildderefimpl;
end;