Преглед изворни кода

* explicitly reset successor if noreturn is set

git-svn-id: trunk@49487 -
florian пре 4 година
родитељ
комит
a988c0fab1
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      compiler/optutils.pas

+ 3 - 1
compiler/optutils.pas

@@ -307,7 +307,9 @@ unit optutils;
               begin
               begin
                 { not sure if this is enough (FK) }
                 { not sure if this is enough (FK) }
                 result:=p;
                 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;
                   p.successor:=succ;
               end;
               end;
             inlinen:
             inlinen: