From f6002d80781aed00cf9549647cae12f17b1ebf98 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 10 Jul 2024 22:26:09 +0200 Subject: [PATCH] * ensure make_simple_ref is called, resolves #40851 --- compiler/x86/nx86inl.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/x86/nx86inl.pas b/compiler/x86/nx86inl.pas index 6127506e81..4ea59f2e91 100644 --- a/compiler/x86/nx86inl.pas +++ b/compiler/x86/nx86inl.pas @@ -1832,8 +1832,7 @@ implementation case paraarray[2].location.loc of LOC_REFERENCE,LOC_CREFERENCE: 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); instr:=TAiCpu(current_asmdata.CurrAsmList.Last); { The instruction just inserted; we need to modify its condition below }