mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
* fixed function result handling for procedure which are inlinable
git-svn-id: trunk@2461 -
This commit is contained in:
parent
d26f004cdb
commit
68016e4db2
@ -190,7 +190,7 @@ implementation
|
||||
begin
|
||||
p.funcretloc[side].loc:=LOC_REGISTER;
|
||||
p.funcretloc[side].size:=retcgsize;
|
||||
if (side=callerside) or (po_inline in p.procoptions)then
|
||||
if (side=callerside) then
|
||||
p.funcretloc[side].register:=newreg(R_INTREGISTER,RS_FUNCTION_RESULT_REG,cgsize2subreg(retcgsize))
|
||||
else
|
||||
p.funcretloc[side].register:=newreg(R_INTREGISTER,RS_FUNCTION_RETURN_REG,cgsize2subreg(retcgsize));
|
||||
|
Loading…
Reference in New Issue
Block a user