[clang] [llvm] [clang] Integrate LLVMABI for function call ABI lowering (PR #194460)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 14:06:44 PDT 2026


================
@@ -876,6 +915,27 @@ const CGFunctionInfo &CodeGenTypes::arrangeLLVMFunctionInfo(
     computeSPIRKernelABIInfo(CGM, *FI);
   } else if (info.getCC() == CC_Swift || info.getCC() == CC_SwiftAsync) {
     swiftcall::computeABIInfo(CGM, *FI);
+  } else if (CGM.shouldUseLLVMABILowering()) {
+    SmallVector<const llvm::abi::Type *, 8> MappedArgTypes;
----------------
andykaylor wrote:

```suggestion
    SmallVector<const llvm::abi::Type *> MappedArgTypes;
```
There's no need to specify a size for the vector, especially since you're reserving a size on the next line.

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


More information about the cfe-commits mailing list