+ fold also constant pointer operations on nil nodes

This commit is contained in:
florian 2024-04-15 22:52:32 +02:00
parent b3c1f294ba
commit 2e9556f2eb

View File

@ -741,7 +741,7 @@ implementation
{ Recover } { Recover }
t:=genintconstnode(0) t:=genintconstnode(0)
end 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) t := cpointerconstnode.create(qword(v),resultdef)
else else
if is_integer(ld) then if is_integer(ld) then