From 1923c8a6117876ed9646ed0ea8a7f8f2f49123bf Mon Sep 17 00:00:00 2001 From: Brendan Dougherty Date: Sun, 15 May 2022 08:56:50 +0000 Subject: [PATCH] Only use Win64 vectorcall special case if calling convention is vectorcall. --- compiler/x86_64/cpupara.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/x86_64/cpupara.pas b/compiler/x86_64/cpupara.pas index 342b4a1c2f..c12d3edd9e 100644 --- a/compiler/x86_64/cpupara.pas +++ b/compiler/x86_64/cpupara.pas @@ -1674,9 +1674,9 @@ unit cpupara; continue; end; - { on win64, if a record has only one field and that field is a + { on vectorcall, if a record has only one field and that field is a single or double, it has to be handled like a single/double } - if use_ms_abi and + if (p.proccalloption=pocall_vectorcall) and ((paradef.typ=recorddef) {or is_object(paradef)}) and tabstractrecordsymtable(tabstractrecorddef(paradef).symtable).has_single_field(fdef) and