Ver Fonte

* fixed restoring of register contents one instruction too far when removing
a previous unused load

git-svn-id: trunk@1465 -

Jonas Maebe há 20 anos atrás
pai
commit
867aaef744
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      compiler/i386/csopt386.pas

+ 1 - 1
compiler/i386/csopt386.pas

@@ -1526,7 +1526,7 @@ begin
           { the contents it had before this instruction                   }
           if getlastinstruction(startmod,beforestartmod) then
             RestoreRegContentsTo(supreg,ptaiprop(beforestartmod.optinfo)^.regs[supreg],
-             startmod,p)
+             startmod,hp1)
           else
             ClearRegContentsFrom(supreg,startmod,hp1);
         end;