* explicitly reset successor if noreturn is set

git-svn-id: trunk@49487 -
(cherry picked from commit a988c0fab1)
This commit is contained in:
florian 2021-06-06 20:33:09 +00:00
parent 68766018ea
commit 078a6c31c9

View File

@ -295,7 +295,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: