Be sure not to add a symbol with empty name as an alias for function return variable

This commit is contained in:
Pierre Muller 2024-02-23 15:40:35 +00:00
parent 37c3e86c7f
commit e7f9626592

View File

@ -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);