mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 20:26:00 +02:00
* temp results of calls in "with" statements can be in regs
git-svn-id: trunk@4649 -
This commit is contained in:
parent
f88aa8de54
commit
355e101bc1
@ -510,7 +510,7 @@ implementation
|
|||||||
{ when right is a call then load it first in a temp }
|
{ when right is a call then load it first in a temp }
|
||||||
if p.nodetype=calln then
|
if p.nodetype=calln then
|
||||||
begin
|
begin
|
||||||
calltempnode:=ctempcreatenode.create(p.resulttype,p.resulttype.def.size,tt_persistent,false);
|
calltempnode:=ctempcreatenode.create(p.resulttype,p.resulttype.def.size,tt_persistent,true);
|
||||||
addstatement(newstatement,calltempnode);
|
addstatement(newstatement,calltempnode);
|
||||||
addstatement(newstatement,cassignmentnode.create(
|
addstatement(newstatement,cassignmentnode.create(
|
||||||
ctemprefnode.create(calltempnode),
|
ctemprefnode.create(calltempnode),
|
||||||
|
Loading…
Reference in New Issue
Block a user