Browse Source

* add forgotten exits, fixes r43874

git-svn-id: trunk@43877 -
florian 5 years ago
parent
commit
3dd6a8e24e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/x86/aoptx86.pas

+ 3 - 0
compiler/x86/aoptx86.pas

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