[Mlir-commits] [mlir] [MLIR] Fix a mismatch between the function return type and the returned value type (NFC) (PR #192258)

Mehdi Amini llvmlistbot at llvm.org
Wed Apr 15 06:20:32 PDT 2026


https://github.com/joker-eph created https://github.com/llvm/llvm-project/pull/192258

This fixes the build on some platform where the inferred count differs.

>From 44dd36758dabe56380d662a489e2bac636ead29a Mon Sep 17 00:00:00 2001
From: Mehdi Amini <joker.eph at gmail.com>
Date: Wed, 15 Apr 2026 06:15:45 -0700
Subject: [PATCH] [MLIR] Fix a mismatch between the function return type and
 the returned value type (NFC)

This fixes the build on some platform where the inferred count differs.
---
 mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp b/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
index 05f4ceced3e86..8ed8c73e2e333 100644
--- a/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
+++ b/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
@@ -409,7 +409,7 @@ static SmallVector<NamedAttribute>
 convertArgumentAttributes(DictionaryAttr attrsDict,
                           ConversionPatternRewriter &rewriter,
                           const LLVMTypeConverter &converter) {
-  SmallVector<NamedAttribute, 4> convertedAttrs;
+  SmallVector<NamedAttribute> convertedAttrs;
   convertedAttrs.reserve(attrsDict.size());
   for (const NamedAttribute &attr : attrsDict) {
     const auto convert = [&](const NamedAttribute &attr) {



More information about the Mlir-commits mailing list