Procházet zdrojové kódy

+ fold also constant pointer operations on nil nodes

florian před 1 rokem
rodič
revize
2e9556f2eb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      compiler/nadd.pas

+ 1 - 1
compiler/nadd.pas

@@ -741,7 +741,7 @@ implementation
                        { Recover }
                        t:=genintconstnode(0)
                      end
-                   else if (lt=pointerconstn) or (rt=pointerconstn) then
+                   else if is_constpointernode(left) or is_constpointernode(right) then
                      t := cpointerconstnode.create(qword(v),resultdef)
                    else
                      if is_integer(ld) then