2
0
Эх сурвалжийг харах

* x86: Fixed minor logic bug in aoc_ForceNewIteration check where UpdateUsedRegs was called at the wrong time.

J. Gareth "Curious Kit" Moreton 3 жил өмнө
parent
commit
de650dea55

+ 1 - 1
compiler/i386/aoptcpu.pas

@@ -252,7 +252,7 @@ unit aoptcpu;
 
             if not Result then
               begin
-                if not (p.typ in SkipInstr) then
+                if (p.typ in SkipInstr) then
                   UpdateUsedRegs(p);
 
                 p := tai(p.Next);

+ 1 - 1
compiler/x86_64/aoptcpu.pas

@@ -174,7 +174,7 @@ uses
 
             if not Result then
               begin
-                if not (p.typ in SkipInstr) then
+                if (p.typ in SkipInstr) then
                   UpdateUsedRegs(p);
 
                 p := tai(p.Next);