瀏覽代碼

* take care of tempinitcode when creating def information for tempcreatenodes

git-svn-id: trunk@26581 -
florian 11 年之前
父節點
當前提交
c44b5d1043
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      compiler/optdfa.pas

+ 8 - 0
compiler/optdfa.pas

@@ -115,6 +115,14 @@ unit optdfa;
     function AddDefUse(var n: tnode; arg: pointer): foreachnoderesult;
       begin
         case n.nodetype of
+          tempcreaten:
+            begin
+              if assigned(ttempcreatenode(n).tempinfo^.tempinitcode) then
+                begin
+                  pdfainfo(arg)^.map.Add(n);
+                  DFASetInclude(pdfainfo(arg)^.def^,n.optinfo^.index);
+                end;
+            end;
           temprefn,
           loadn:
             begin