mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 01:51:37 +01:00
Be sure not to add a symbol with empty name as an alias for function return variable
This commit is contained in:
parent
37c3e86c7f
commit
e7f9626592
@ -369,6 +369,8 @@ implementation
|
||||
hs:=pd.resultname^
|
||||
else
|
||||
hs:=pd.procsym.name;
|
||||
if (hs='') then
|
||||
hs:='$_result';
|
||||
sl:=tpropaccesslist.create;
|
||||
sl.addsym(sl_load,pd.funcretsym);
|
||||
aliasvs:=cabsolutevarsym.create_ref(hs,pd.returndef,sl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user