* explicitly reset successor if noreturn is set

git-svn-id: trunk@49487 -
This commit is contained in:
florian 2021-06-06 20:33:09 +00:00
parent 2b3edb2c53
commit a988c0fab1

View File

@ -307,7 +307,9 @@ unit optutils;
begin
{ not sure if this is enough (FK) }
result:=p;
if not(cnf_call_never_returns in tcallnode(p).callnodeflags) then
if cnf_call_never_returns in tcallnode(p).callnodeflags then
p.successor:=nil
else
p.successor:=succ;
end;
inlinen: