* use the correct node in CalcLife

git-svn-id: trunk@25976 -
This commit is contained in:
florian 2013-11-06 21:11:01 +00:00
parent 2fc4a7fdd7
commit 722c59bcb1

View File

@ -227,8 +227,8 @@ unit optdfa;
begin
{ last node, not exit or raise node and function? }
if assigned(resultnode) and
not(node.nodetype=exitn) and
not((node.nodetype=calln) and (cnf_call_never_returns in tcallnode(node).callnodeflags)) then
not(n.nodetype=exitn) and
not((n.nodetype=calln) and (cnf_call_never_returns in tcallnode(n).callnodeflags)) then
begin
{ if yes, result lifes }
DFASetDiff(l,resultnode.optinfo^.life,n.optinfo^.def);