瀏覽代碼

* temp results of calls in "with" statements can be in regs

git-svn-id: trunk@4649 -
Jonas Maebe 19 年之前
父節點
當前提交
355e101bc1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/pstatmnt.pas

+ 1 - 1
compiler/pstatmnt.pas

@@ -510,7 +510,7 @@ implementation
                 { when right is a call then load it first in a temp }
                 if p.nodetype=calln then
                   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,cassignmentnode.create(
                         ctemprefnode.create(calltempnode),