浏览代码

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

git-svn-id: trunk@25867 -
florian 11 年之前
父节点
当前提交
0eeb3e8d49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/aoptobj.pas

+ 1 - 1
compiler/aoptobj.pas

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