Browse Source

* x86: Correct fileinfo and some refactoring for OptPass1CMP

J. Gareth "Curious Kit" Moreton 3 years ago
parent
commit
6eede0f71f
1 changed files with 1 additions and 0 deletions
  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,