Explorar o código

* 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 %!s(int64=11) %!d(string=hai) anos
pai
achega
3a11dd1055
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]));