소스 검색

* use InstructionLoadsFromReg instead of RegInInstruction when moving register deallocations

git-svn-id: trunk@33541 -
florian 9 년 전
부모
커밋
4ac3953c34
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/aopt.pas

+ 1 - 1
compiler/aopt.pas

@@ -189,7 +189,7 @@ Unit aopt;
                         hp2 := nil;
                         While Not(assigned(FindRegAlloc(tai_regalloc(p).Reg, tai(hp1.Next)))) And
                               GetNextInstruction(hp1, hp1) And
-                              RegInInstruction(tai_regalloc(p).Reg, hp1) Do
+                              InstructionLoadsFromReg(tai_regalloc(p).Reg, hp1) Do
                           hp2 := hp1;
                         { move deallocations }
                         If hp2 <> nil Then