[Mlir-commits] [mlir] 5c1c226 - [mlir] Match diagnostic string vector return type (#226011)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 24 00:31:29 PDT 2026
Author: Akun
Date: 2026-09-24T09:31:22+02:00
New Revision: 5c1c22673ce6f981a0f399409134576caaf24f87
URL: https://github.com/llvm/llvm-project/commit/5c1c22673ce6f981a0f399409134576caaf24f87
DIFF: https://github.com/llvm/llvm-project/commit/5c1c22673ce6f981a0f399409134576caaf24f87.diff
LOG: [mlir] Match diagnostic string vector return type (#226011)
Match the local `SmallVector<std::string>` type to
`Diagnostic::strs()`'s declared return type.
Fix the build on some platform/toolchains.
Assisted by: codex
Added:
Modified:
mlir/lib/IR/Diagnostics.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/Diagnostics.cpp b/mlir/lib/IR/Diagnostics.cpp
index 81e666db48562..ad93a9b1606fc 100644
--- a/mlir/lib/IR/Diagnostics.cpp
+++ b/mlir/lib/IR/Diagnostics.cpp
@@ -193,7 +193,7 @@ std::string Diagnostic::str() const {
/// Converts each message part to a separate string.
SmallVector<std::string> Diagnostic::strs() const {
- SmallVector<std::string, 2> strs;
+ SmallVector<std::string> strs;
size_t numMessageParts = messagePartEnds.size();
// Include the current message part if there are no completed parts or if it
More information about the Mlir-commits
mailing list