summaryrefslogtreecommitdiff
path: root/compiler/hlcgobj.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-12-08 15:33:36 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-12-08 15:33:36 +0000
commita96466cd45209a4c5231c279f27137de2326dd28 (patch)
tree4571c1b08d8b32fa38062d8d1bab2e2852e44288 /compiler/hlcgobj.pas
parent9061c410b94d183d268814a97614be5604ad058d (diff)
parent7043e7690c0b857c8ec90a8b75c40001d1549e3b (diff)
downloadfpc-a96466cd45209a4c5231c279f27137de2326dd28.tar.gz
* synchronised with trunk till r40503
git-svn-id: https://svn.freepascal.org/svn/fpc/branches/debug_eh@40504 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/hlcgobj.pas')
-rw-r--r--compiler/hlcgobj.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/hlcgobj.pas b/compiler/hlcgobj.pas
index 8ae0de9633..6107966cb1 100644
--- a/compiler/hlcgobj.pas
+++ b/compiler/hlcgobj.pas
@@ -5216,7 +5216,9 @@ implementation
gen_load_loc_function_result(list,retdef,ressym.localloc);
end
else
- gen_load_uninitialized_function_result(list,current_procinfo.procdef,retdef,current_procinfo.procdef.funcretloc[calleeside])
+ gen_load_uninitialized_function_result(list,current_procinfo.procdef,retdef,current_procinfo.procdef.funcretloc[calleeside]);
+ if ressym.localloc.loc=LOC_REFERENCE then
+ tg.UnGetLocal(list,ressym.localloc.reference);
end;
procedure thlcgobj.gen_stack_check_size_para(list: TAsmList);