[Mlir-commits] [mlir] b2521ae - [mlir][IR] Fix build error with gcc-7 (#158305)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 12 07:54:20 PDT 2025
Author: Matthias Springer
Date: 2025-09-12T15:54:16+01:00
New Revision: b2521ae01c3ae777c088960e0edbc4cf417f6dbb
URL: https://github.com/llvm/llvm-project/commit/b2521ae01c3ae777c088960e0edbc4cf417f6dbb
DIFF: https://github.com/llvm/llvm-project/commit/b2521ae01c3ae777c088960e0edbc4cf417f6dbb.diff
LOG: [mlir][IR] Fix build error with gcc-7 (#158305)
Fix build after #156825.
Added:
Modified:
mlir/lib/IR/Remarks.cpp
Removed:
################################################################################
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