Ver código fonte

* add forgotten exits, fixes r43874

git-svn-id: trunk@43877 -
florian 5 anos atrás
pai
commit
3dd6a8e24e
1 arquivos alterados com 3 adições e 0 exclusões
  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;