Browse Source

* ensure make_simple_ref is called, resolves #40851

florian 1 year ago
parent
commit
f6002d8078
1 changed files with 1 additions and 2 deletions
  1. 1 2
      compiler/x86/nx86inl.pas

+ 1 - 2
compiler/x86/nx86inl.pas

@@ -1832,8 +1832,7 @@ implementation
                  case paraarray[2].location.loc of
                  case paraarray[2].location.loc of
                    LOC_REFERENCE,LOC_CREFERENCE:
                    LOC_REFERENCE,LOC_CREFERENCE:
                      begin
                      begin
-                       current_asmdata.CurrAsmList.concat(taicpu.op_reg_ref(A_CMP,opsize,
-                         paraarray[1].location.register,paraarray[2].location.reference));
+                       emit_reg_ref(A_CMP,opsize,paraarray[1].location.register,paraarray[2].location.reference);
 
 
                        emit_ref_reg(A_CMOVcc,opsize,paraarray[2].location.reference,location.register);
                        emit_ref_reg(A_CMOVcc,opsize,paraarray[2].location.reference,location.register);
                        instr:=TAiCpu(current_asmdata.CurrAsmList.Last); { The instruction just inserted; we need to modify its condition below }
                        instr:=TAiCpu(current_asmdata.CurrAsmList.Last); { The instruction just inserted; we need to modify its condition below }