mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 04:06:08 +02:00
* allow function results of inlined functions to be regvars
git-svn-id: trunk@15494 -
This commit is contained in:
parent
257440153f
commit
f72526b95f
@ -2204,7 +2204,9 @@ implementation
|
||||
end
|
||||
else
|
||||
begin
|
||||
temp:=ctempcreatenode.create(resultdef,resultdef.size,tt_persistent,false);
|
||||
temp:=ctempcreatenode.create(resultdef,resultdef.size,tt_persistent,
|
||||
(cnf_do_inline in callnodeflags) and
|
||||
not(tabstractvarsym(tprocdef(procdefinition).funcretsym).varregable in [vr_none,vr_addr]));
|
||||
include(temp.flags,nf_is_funcret);
|
||||
add_init_statement(temp);
|
||||
{ When the function result is not used in an inlined function
|
||||
|
Loading…
Reference in New Issue
Block a user