mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 13:19:34 +01:00
* explicitly reset successor if noreturn is set
git-svn-id: trunk@49487 -
(cherry picked from commit a988c0fab1)
This commit is contained in:
parent
68766018ea
commit
078a6c31c9
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user