Преглед на файлове

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

git-svn-id: trunk@1465 -

Jonas Maebe преди 20 години
родител
ревизия
867aaef744
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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                   }
           { the contents it had before this instruction                   }
           if getlastinstruction(startmod,beforestartmod) then
           if getlastinstruction(startmod,beforestartmod) then
             RestoreRegContentsTo(supreg,ptaiprop(beforestartmod.optinfo)^.regs[supreg],
             RestoreRegContentsTo(supreg,ptaiprop(beforestartmod.optinfo)^.regs[supreg],
-             startmod,p)
+             startmod,hp1)
           else
           else
             ClearRegContentsFrom(supreg,startmod,hp1);
             ClearRegContentsFrom(supreg,startmod,hp1);
         end;
         end;