mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:29:24 +02:00
* use the correct node in CalcLife
git-svn-id: trunk@25976 -
This commit is contained in:
parent
2fc4a7fdd7
commit
722c59bcb1
@ -227,8 +227,8 @@ unit optdfa;
|
|||||||
begin
|
begin
|
||||||
{ last node, not exit or raise node and function? }
|
{ last node, not exit or raise node and function? }
|
||||||
if assigned(resultnode) and
|
if assigned(resultnode) and
|
||||||
not(node.nodetype=exitn) and
|
not(n.nodetype=exitn) and
|
||||||
not((node.nodetype=calln) and (cnf_call_never_returns in tcallnode(node).callnodeflags)) then
|
not((n.nodetype=calln) and (cnf_call_never_returns in tcallnode(n).callnodeflags)) then
|
||||||
begin
|
begin
|
||||||
{ if yes, result lifes }
|
{ if yes, result lifes }
|
||||||
DFASetDiff(l,resultnode.optinfo^.life,n.optinfo^.def);
|
DFASetDiff(l,resultnode.optinfo^.life,n.optinfo^.def);
|
||||||
|
Loading…
Reference in New Issue
Block a user