[Mlir-commits] [mlir] [mlir] Fix build (PR #158305)

Matthias Springer llvmlistbot at llvm.org
Fri Sep 12 07:49:37 PDT 2025


https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/158305

Fix build after #156825.

>From 3f4c50d506adefa0202b50c609841b039ffe27ae Mon Sep 17 00:00:00 2001
From: Matthias Springer <me at m-sp.org>
Date: Fri, 12 Sep 2025 14:46:22 +0000
Subject: [PATCH] [mlir] Fix build

Fix build after #156825.
---
 mlir/lib/IR/Remarks.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/lib/IR/Remarks.cpp b/mlir/lib/IR/Remarks.cpp
index 29088bd360e23..a55f61aff77bb 100644
--- a/mlir/lib/IR/Remarks.cpp
+++ b/mlir/lib/IR/Remarks.cpp
@@ -284,7 +284,7 @@ buildFilter(const mlir::remark::RemarkCategories &cats,
   if (!rx.isValid(err))
     return std::nullopt;
 
-  return rx;
+  return std::make_optional<llvm::Regex>(std::move(rx));
 }
 
 RemarkEngine::RemarkEngine(bool printAsEmitRemarks,



More information about the Mlir-commits mailing list