mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 17:19:32 +02:00
Also look for function name of 'result' is not found in load_result_node
git-svn-id: trunk@47208 -
This commit is contained in:
parent
e50a388f30
commit
bf5b85e5e5
@ -562,9 +562,16 @@ implementation
|
||||
function load_result_node:tnode;
|
||||
var
|
||||
srsym : tsym;
|
||||
begin
|
||||
pd : tprocdef;
|
||||
begin
|
||||
result:=nil;
|
||||
srsym:=get_local_or_para_sym('result');
|
||||
if not assigned(srsym) then
|
||||
begin
|
||||
pd:=current_procinfo.procdef;
|
||||
if assigned(pd.procsym) then
|
||||
srsym:=get_local_or_para_sym(pd.procsym.name);
|
||||
end;
|
||||
if assigned(srsym) then
|
||||
result:=cloadnode.create(srsym,srsym.owner)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user