浏览代码

* in PeepHoleOptPass1Cpu when an instruction contains a segment, don't replace the current instruction with the next, cause then we get an infinite loop when compiling on Win32 with -dTEST_WIN32_SEH -O4

git-svn-id: trunk@43704 -
svenbarth 5 年之前
父节点
当前提交
0149d26adb
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      compiler/i386/aoptcpu.pas

+ 1 - 5
compiler/i386/aoptcpu.pas

@@ -139,11 +139,7 @@ unit aoptcpu;
             begin
               current_filepos:=taicpu(p).fileinfo;
               if InsContainsSegRef(taicpu(p)) then
-                begin
-                  p:=tai(p.next);
-                  Result:=true;
-                  exit;
-                end;
+                exit;
               case taicpu(p).opcode Of
                 A_AND:
                   Result:=OptPass1And(p);