소스 검색

* x86: Correct fileinfo and some refactoring for OptPass1CMP

J. Gareth "Curious Kit" Moreton 3 년 전
부모
커밋
6eede0f71f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/x86/aoptx86.pas

+ 1 - 0
compiler/x86/aoptx86.pas

@@ -6881,6 +6881,7 @@ unit aoptx86;
                      { Prefer adding before the next instruction so the FLAGS
                        register is deallocated first  }
                      hp2 := taicpu.op_reg_reg(A_OR, S_B, NewReg, taicpu(p_dist).oper[0]^.reg);
+                     taicpu(hp2).fileinfo := taicpu(p_dist).fileinfo;
 
                      AsmL.InsertBefore(
                        hp2,