================ @@ -393,6 +401,18 @@ CharUnits PPC32_SVR4_ABIInfo::getParamTypeAlignment(QualType Ty) const { return CharUnits::fromQuantity(4); } +ABIArgInfo PPC32_SVR4_ABIInfo::classifyArgumentType(QualType Ty) const { + bool IsTransparentUnion; + Ty = useFirstFieldIfTransparentUnion(Ty, IsTransparentUnion); + + if (IsTransparentUnion && isPromotableIntegerTypeForABI(Ty)) ---------------- hubert-reinterpretcast wrote:
I don't think `isPromotableIntegerTypeForABI` handles enums. We should add a enum test case (maybe with `-fshort-enums`). https://github.com/llvm/llvm-project/pull/101738 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits