Przeglądaj źródła

* check if the pointer is really assigned when trying to remove unneeded jumps

git-svn-id: trunk@25867 -
florian 12 lat temu
rodzic
commit
0eeb3e8d49
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      compiler/aoptobj.pas

+ 1 - 1
compiler/aoptobj.pas

@@ -1379,7 +1379,7 @@ Unit AoptObj;
                               p:=hp2;
                               continue;
                             end
-                          else
+                          else if assigned(hp1) then
                             begin
                               if hp1.typ = ait_label then
                                 SkipLabels(hp1,hp1);