From 9b1a36fcdb1bc75bdc1ae9da560ddc87345ae6f7 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Wed, 13 Nov 2013 20:52:38 +0000 Subject: [PATCH] * don't call buildderef for the local symtable of procdefs unless we will write it to the ppu git-svn-id: trunk@26083 - --- compiler/symdef.pas | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/symdef.pas b/compiler/symdef.pas index c3a1e717d9..b59db09c62 100644 --- a/compiler/symdef.pas +++ b/compiler/symdef.pas @@ -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;