Browse Source

* create the addr node for cse with create_internal to avoid errors when taking the address of a temp.

git-svn-id: trunk@26624 -
florian 11 năm trước cách đây
mục cha
commit
3a11dd1055
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/optcse.pas

+ 1 - 1
compiler/optcse.pas

@@ -374,7 +374,7 @@ unit optcse;
 
                         if addrstored then
                           templist[i]:=ctempcreatenode.create_value(getpointerdef(def),voidpointertype.size,tt_persistent,
-                            true,caddrnode.create(tnode(lists.nodelist[i])))
+                            true,caddrnode.create_internal(tnode(lists.nodelist[i])))
                         else
                           templist[i]:=ctempcreatenode.create_value(def,def.size,tt_persistent,
                             def.is_intregable or def.is_fpuregable,tnode(lists.nodelist[i]));