瀏覽代碼

* add forgotten exits, fixes r43874

git-svn-id: trunk@43877 -
florian 5 年之前
父節點
當前提交
3dd6a8e24e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/x86/aoptx86.pas

+ 3 - 0
compiler/x86/aoptx86.pas

@@ -1297,6 +1297,7 @@ unit aoptx86;
                 p.Free;
                 p:=hp1;
                 result:=true;
+                exit;
               end
             else if GetNextInstruction(p,hp1) then
               begin
@@ -1318,6 +1319,7 @@ unit aoptx86;
                         asml.Remove(hp1);
                         hp1.Free;
                         result:=true;
+                        exit;
                       end
                     { special case:
                       vmova* reg1,reg2
@@ -1330,6 +1332,7 @@ unit aoptx86;
                         asml.Remove(hp1);
                         hp1.Free;
                         result:=true;
+                        exit;
                       end
                   end
             end;