From bcbf240d2eab2a2794224487d87519ac31016c96 Mon Sep 17 00:00:00 2001 From: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> Date: Tue, 23 Feb 2021 13:15:45 +0100 Subject: PPTC: Fix unwanted propagation of a relocatable constant in a specific case. (#1990) * Fix unwanted propagation of a relocatable constant in a specific case. * Ptc.InternalVersion = 1990 * Nit to retrigger the Checks. --- ARMeilleure/CodeGen/X86/Assembler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ARMeilleure/CodeGen/X86') diff --git a/ARMeilleure/CodeGen/X86/Assembler.cs b/ARMeilleure/CodeGen/X86/Assembler.cs index 2484e251..bab4c453 100644 --- a/ARMeilleure/CodeGen/X86/Assembler.cs +++ b/ARMeilleure/CodeGen/X86/Assembler.cs @@ -961,7 +961,7 @@ namespace ARMeilleure.CodeGen.X86 WriteInt32((int)imm); } - else if (dest != null && dest.Kind == OperandKind.Register && info.OpRImm64 != BadOp) + else if (dest?.Kind == OperandKind.Register && info.OpRImm64 != BadOp) { int? index = source.PtcIndex; -- cgit v1.2.3