[clang] [X86_64] fix arg pass error in struct. (PR #86902)

Longsheng Mou via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 6 18:19:38 PDT 2024


================
@@ -2100,8 +2100,12 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, Class &Lo,
         postMerge(Size, Lo, Hi);
         return;
       }
+
+      bool InMemory = Offset % getContext().getTypeAlign(i->getType()) ||
+                      (i->getType()->getAs<BuiltinType>() &&
----------------
CoTinker wrote:

I think it's a really good idea.

https://github.com/llvm/llvm-project/pull/86902


More information about the cfe-commits mailing list