[clang] [clang][RISCV] support BITINT with mixed-type (PR #156592)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 3 08:55:53 PDT 2025
================
@@ -696,6 +693,11 @@ ABIArgInfo RISCVABIInfo::classifyArgumentType(QualType Ty, bool IsFixed,
/*ByVal=*/false);
}
+ // All integral types are promoted to XLen width
+ if (Size < XLen && Ty->isIntegralOrEnumerationType()) {
+ return extendType(Ty, CGT.ConvertType(Ty));
+ }
----------------
topperc wrote:
Drop curly braces
https://github.com/llvm/llvm-project/pull/156592
More information about the cfe-commits
mailing list